Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 10 years ago

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

Log in to vote
1
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

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)

0
Oh so it's wait(1)game.Players.LocalPlayer.CameraMode = "LockFirstPerson" Right? 789zaya 0 — 10y
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. BlueTaslem 18071 — 10y
0
Hmm, 789zaya 0 — 10y
Ad

Answer this question