foxy is acually a nice character ratherly his voice box is broken and may try to talk to the player and instead of jumping at you he seems to check on you by peeking in the door to make sure yout alright if you check on him to much or to little he will come.
and he doesnt want to hurt you but he accidently kills the player and another comes then stuffs you into a costume and he hides because he is rpped and his exo-skeleton is showing and the anamitronics might try to stuff him in another costume. its belived that foxy wants to come to you to hide from the animatronics because its the safest place for him.