Hold the door shut until you hear footsteps retreating.
Flash the light briefly to see him, then hold the door/closet shut (or keep the light on the bed) until he laughs again and moves back to the hallways. ФНаФ 4 - 6 ночь
Night 6 is the "Nightmare" level where the difficulty spikes significantly because you are dealing with all the standard animatronics until 4 AM, at which point takes over the entire house. Here is a solid write-up and strategy to help you survive: Phase 1: 12 AM to 4 AM (The Gauntlet) Hold the door shut until you hear footsteps retreating
Develop a "loop." Left door -> Bed -> Right door -> Bed -> Closet (if needed). ФНаФ 4 - 6 ночь
If you hear breathing, don't accidentally flash the light. It's an instant jumpscare.