Kinda is rng based, but try to focus on foxy first. I beat night 5 in 2 tries.
The problem is in time. It literally 3-4 seconds to dodge all at same time. Like if i focus on foxy, then i get losing by bonnie or chica. I had 5 attempts and 4 of them i lost due to 3 chars in room at the same time