First of all, thanks for sharing the code.
Anyway, I really don't like copy-pasting and I was wondering if you can add some comments or explain me all these "copyvar, subvar, getplayerpos...". I mean, I know what they does, but how did you choose the parameters and so?
Furthermore, what do I...