What you have to do is use the command setflag right before (or after, I forgot) hidesprite. Then you go to advance map, and go to the person, and look at their person ID, and replace 0000 with the flag. So for example, in the script but setflag 0x1200, so in the Person ID make it 1200.