You need to put "Option Explicit" at the top of your script to force you to declare variables before you try to use them. Then you also need to initialize "Target" and "ninja" since you never set those variables to anything befor trying to use them as if they were variables representing sprites.