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

How do I put someone in first person locked?

Asked by 10 years ago

I don't know how to.

3 answers

Log in to vote
0
Answered by
hudzell 238 Moderation Voter
10 years ago
game.Players.PlayerAdded:connect(function(plr)
    plr.CameraMode = "LockFirstPerson"
end)
Ad
Log in to vote
0
Answered by 10 years ago

It's quite simple. In the Player object, there is a property called CameraMode. Set it to LockFirstPerson or 1. I recommend putting a LocalScript in StarterGui with the following code:

game.Players.LocalPlayer.CameraMode = 1
Log in to vote
0
Answered by
SNOWFKE 25
10 years ago

Here's the script I use in my game:

script.FirstPersonLock:Clone().Parent = game.StarterGui
script:Destroy()

Put a LocalScript inside of that containing this:

local lPlr = game.Players.LocalPlayer
if lPlr then
    wait()
    lPlr.CameraMode = 0
    lPlr.CameraMode = 1
end
script:Destroy()

Answer this question