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

Why wont this work when i play the game on the website but it will work when i play in studio?

repeat wait() until game.Players.LocalPlayer
local p = game.Players.LocalPlayer
p.CameraMode = "LockFirstPerson"

Its meant to lock first person but it didn't work. Please help. Its in a normal script. Do i put it in a local one or what?

1 comment

0

Some one must really hate me. They disliked this. Like my other one. I think some one is abuseing there dislikes. There was no reason to dislike this one.

1 answer

✓ Accepted answer

Put it in a LocalScript. LocalPlayer can only be accessed through a LocalScript.

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