As you probably know, in FNAF 2 Foxy is not fooled by the mask, will leave if you flash the light at him, and stays at the back of the hall. Now, if you flash the light at him, you can see him. But now he knows you're there. You just flashed a light at him. He can see you, and you can flash a light. But this repels him. And the mask does not fool him. And he doesn't get closer. Ok, why? What is the meaning of it all? Well, my theory on this is that he thinks that an animatronic is standing in front of you. The withered animatronics do this. By flashing the light, he can see you, and see you are ok, or the message he's getting is "i'm here. i can still flash the light. They haven't got me." But when you don't flashing he thinks either you are being stuffed into a suit or are being attacked, or the animatronic is blocking the light. He isn't fooled by the mask because he can't see you. So why does he leap? Well, when he leaps, he screams. He leaps because he wants to knock away the animatronic he thinks is there. He screams to say something like "GET AWAY FROM THE SECURITY GUARD" or "WATCH OUT, I'M ABOUT TO LEAP, SECURITY GUARD, I MIGHT KNOCK THE ANIMATRONIC ON YOU" or "LEAVE THE SECURITY GUARD ALONE". You might have noticed when he leaps he doesn't look at you. He would be looking at the animatronic he thinks is there, but he leaps so fast he doesn't have time to look at you. ^_^