So i'm making a fnaf fangame, and I ran into something I didn't know. If you don't close the door in a certain amount of time the bad guy is supposed to kill you. I've tried every way I can think of and he doesn't jumpscare you. Could someone please tell me how to do this? Or could you link a tutorial if any?