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

Why is this not forcing first person when in online mode? [Solved using Another Method]

Hi! - I am currently working on a game that is completely first person based, and as such, I have locked it into first person.

However, the ForceFirstPerson camera property appears to have been removed, breaking my method.

I am now using this -

local Player = Game.Players.LocalPlayer
Player.CameraMaxZoomDistance, Player.CameraMinZoomDistance = .5

This works flawlessly in solo mode - but does not appear to work on an online server.

Thanks in advance,

  • Dragon

2 comments

0

Is this a LocalScript or a Script running?

0

In response to BlueTaslem - It was not originally. I have tried running it in both a LocalScript and a normal Script but the problem persists.

2 answers

✓ Accepted answer

Put the following line in a localscript:


game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson 

This is the way that you lock a camere in a first person.

ForceFirstPerson is still available, but it's not Force any more, it's Lock as per the next two lines:

game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson

game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.Classic

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