Well, the original wasn't working so I replaced it with the method that I knew works (two-costume method). There are comments inside, hopefully the script is vaguely understandable?