Can you explaine how to do this a little more in depth. how to write the script and such. I tried to do this couple of times with errors.