Place it at the start of a boss segment, after Enemy Spotted signals the encounter, and let it run through the fight before FNAF Jumpscare Scream marks the boss's big attack.