"you can have a hitbox around your character that follows you and once its entered the lights flicker using a loop and it stops when the object leaves the hitbox"