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

How would I make it so people are stuck in first person?

I would like to make it so in my FPS game, people can't can't zoom out and they are stuck in first person.

3 answers

✓ Accepted answer

Hey!

You can lock somebody in first person by setting the player.CameraMode property! You can view the documentation on it here. You can set the CameraMode to LockFirstPerson with the script below...

local Player = game.Players.LocalPlayer

Player.CameraMode = Enum.CameraMode.LockFirstPerson

To change it back, you can set the CameraMode back to Classic like shown below...

Player.CameraMode = Enum.CameraMode.Classic

If this helped, please remember to mark as answered and upvote! If you have any questions, let me know.

1 comment

1

Thank you! This really helped me as I am new to coding and am trying to receive as much information as possible and I was quite lucky when I stumbled on this website and thank you very much again I appreciate your help a lot :3

Hello. Set CameraMaxZoomDistance to 0.5 and CameraMode to LockFirstPerson in theStarterPlayer service. You don't even need a script.

3 comments

0

thank you :)

0

setting cameramaxzoomdistance is useless if its locked in first person...

0

Please accept my answer.


sloth octopus cat polar bear turtle sea otter kitten sloth mouse squirrel otter llama UwU

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