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

Check if a player is in first person?

How can I check if a player is in first person?

[I do not need a first person lock. I need to check if the player is in first person.]

1 answer

✓ Accepted answer

I assume you already know how to set a player's CameraMode to first person.

player = game:GetService('Players').LocalPlayer

player.CameraMode = Enum.CameraMode.LockFirstPerson

All you would have to do to check would be to check if the CameraMode is set to Enum.CameraMode.LockFirstPerson, and proceed accordingly.

player = game:GetService('Players').LocalPlayer

if player.CameraMode == Enum.CameraMode.LockFirstPerson then
	print('locked')
else
	print('unlocked')
end

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