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

How do you make a FirstPerson Script?

Asked by 10 years ago

Do you need to use a local script and change the field of view?

2 answers

Log in to vote
1
Answered by 10 years ago

You can do this to lock the player`s camera on first person when they enter the game:

game.Players.PlayerAdded:connect(function(plr) --Gets the player as they enter the game
    plr.CameraMode = Enum.CameraMode.LockFirstPerson --Changes the player`s cameramode property to lockfirstperson
end)

The above srcipt MUST be in a local script to work.

1
No, it can be in a normal script. Perci1 4988 — 10y
0
To work in online mode, it has to be in a local script 73epic311 13 — 10y
Ad
Log in to vote
1
Answered by 10 years ago

Put this in a LocalScript in StarterPack

while true do
    game.Players.LocalPlayer.CameraMaxZoomDistance = 0
    wait(15) -- So the game doesn't crash.
end

Answer this question