The entire script (everything in the code text box) goes into a remote file.
Good luck figuring it out yourself but I could probably help you a lot if you want to either go to gamesurge or tell me what server I can contact you on. I know it's not a problem with a script because I'm using the exact same script and it works fine. (or at least runs, there may still be a few very small bugs I'm unaware of)