foxy is a little complicated but foxy's timer has a cap of 25, when you're watching foxy and his timer reaches it's cap that'll be considered looking at him for too long and he'll instantly move, to prevent the timer from reaching the cap but prevent the timer from running out you gotta be constantly flipping up and down, you just gotta find your own rhythm with the flips. If you had just watched freddy or golden freddy then watch foxy for a little bit longer before flipping down. If you play with foxy really good he should run only once