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

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

Asked by 4 years ago

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

Log in to vote
0
Answered by
crywink 419 Moderation Voter
4 years ago

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
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 ninjadude2705 18 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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

0
thank you :) ninjadude2705 18 — 4y
0
setting cameramaxzoomdistance is useless if its locked in first person... iOriena3 67 — 4y
0
Please accept my answer. youtubemasterWOW 2741 — 4y
Log in to vote
0
Answered by 4 years ago

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

Answer this question