Hello! Just to let you know, I have added your script in this post into a spoiler. Reason being, it is a rather long script, so having to scroll past it all can be a pain for some members. :)
Next time, if it is a little long, please add it in spoiler tags, which can be done by adding the following tags around any text or image:
[SPOILER]Put stuff in here![/SPOILER]
If you have any questions, you are welcome to ask.