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

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

Asked by 10 years ago

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

0
Is this a LocalScript or a Script running? BlueTaslem 18071 — 10y
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. HypocriticalDragon 40 — 10y

2 answers

Log in to vote
2
Answered by
1N0body 206 Moderation Voter
10 years ago

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.

Ad
Log in to vote
1
Answered by
ipiano 120
10 years ago

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

Answer this question