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

How do I make a player stuck in first person?

Asked by 3 years ago

i want to know if there is a way to make a player camra go in 1st person instead of being able to zoom in and out of thrd person.

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

Try using

local Player = game.Players.LocalPlayer
Player.CameraMode = Enum.CameraMode.LockFirstPerson

inside of a local script that is inside of the Starter Character Scripts in the StarterPlayer service

this will define the Player and then set the Player's CameraMode property to the LockFirstPerson Enum. This makes them unable to switch out of first person until changed.

0
it worked thank you Hydroxygen4Humans 35 — 3y
Ad

Answer this question