Well, I used an original FPS script: game.Players.LocalPlayer.CameraMode = "LockFirstPerson" put it in a local script, put the local script inside the StarterGui tested it and It worked, PERFECTLLY! Then in Play mode on the Roblox website, it didn't work, it didn't zoom in like it did in studio mode, so can someone give me a script that works in Test mode AND Play mode? Or tell me a way to fix this Glitch? Thanks!
✓ ANSWER ACCEPTED
Why does Studio test mode work better than the Website play mode?
1 answer
✓ Accepted answer
Test in Server mode from studio to catch mistakes with your implementations.
"Test Solo" doesn't execute LocalScripts and load times in the same way that real ROBLOX servers do, so it's only a starting point -- things interacting with settings and local objects won't necessarily run the same way.
Sometimes the solution is just to add a brief pause to the beginning, a la wait(1)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Oh so it's wait(1)game.Players.LocalPlayer.CameraMode = "LockFirstPerson" Right?
Try that; it may not be a solution but it's a simple attempt. Otherwise, debug using Start Server + Start Players from studio so that you don't have to upload and use the website.
Hmm,