Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why does Studio test mode work better than the Website play mode?

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!

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)

3 comments

0

Oh so it's wait(1)game.Players.LocalPlayer.CameraMode = "LockFirstPerson" Right?

0

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.

0

Hmm,

This discussion is preserved as it was. New answers, comments, and votes are closed.