How Can I Lock A Player Into First Person In A Local Script

Hey developers I’m trying to lock a player into first person through a local script at a point in my game. I cannot seem to find any camera options apart from Current Camera which does not have any variables to change into first person.

All help Appreciated.

The Player instance itself has some properties that can help you. (CameraMaxZoomDistance and CameraMode)

Setting the MaxZoomDistance to 0 (may clamp to 0.5) will put the player in first person, and I am unsure of whether or not setting CameraMode will force them into first person.

1 Like

so i can use player.CameraMaxZoomDistance?

1 Like

CameraMode = Enum.CameraMode.LockFirstPerson does lock players into first person

1 Like

this does not seem to work

local Players = game:GetService("Players")
local player = Players.LocalPlayer
Enum.CameraMode = Enum.CameraMode.LockFirstPerson

player.CameraMode = Enum.CameraMode.LockFirstPerson
1 Like

is this a local or server script?

player camera can only be modified from a local script

i figured it out and it was local and issue there was the second to last line even existing

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.