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.
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.
Hello. Set CameraMaxZoomDistance
to 0.5 and CameraMode
to LockFirstPerson in theStarterPlayer
service. You don't even need a script.
sloth octopus cat polar bear turtle sea otter kitten sloth mouse squirrel otter llama UwU