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

How do I lock the camera mode and not allow players to change it?

I tried looking it up on Roblox Wiki, but I am confused, as I tried it, and looked at my settings, I could see that I could still change my camera mode. I am trying to lock it to classic mode. I used a local script and put it in the starter player folder(Character).

In case you are wondering what local script I'm using, here it is:

game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockClassic

2 answers

All I did was add a loop, try that, if it doesn't work, hit me back.

while wait() do
game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
end

1 comment

0

This will lock the player's into first person.

Well if you go into the starter players folder, there is a property called cameramode and it has 2 options, {classic is where u can zoom in an out, lockfirstperson locks the person into first person and it cannot be changed by the player, only by a script.}

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