Game only functions properly in studio

i have been testing and fixing bugs in my game for a while now, and when i play it in studio, even when starting a server to test, it works perfectly, but when i publish it, some animations glitch and the character kinda of freaks out in a way and just shakes. btw i’m not using team create, and all the animations im using were published in the same account that published the game.

here is how it looks for me in studio:

and here is how it looks in-game:

this might be related to the camera script i’m using, if any1 needs that script to see if it is the problem, just tell me
thanks in advance =D
(btw sorry for the laggy video, i used roblox’s screen recorder)