Note: Avoid having any variables or strings containing the word "else", "function", "for " or "while", and specifically variables ending with the word "then"
Also avoid multiline comments
Also type defining is not allowed, so you cannot do "local myVar:Number"
Use the copy button to copy code, do not triple click text, it adds trailing and preceding spaces which makes it unreadable.
Output script will be here