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

How Do You Lock First Person?

Asked by 10 years ago

I've got a script that moves this localscript into a player's backpack when they sit at a VehicleSeat, and that script seems to be working fine. The script that gets transported, however, does not.

game.Workspace.CurrentCamera:remove()
wait(.1)
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
wait(.1)
game:GetService("Players").LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson

Answer this question