PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

FirstPersonTransition

This event fires when the local user’s Camera switches in and out of first person mode.

This event no longer functions and cannot be used by developers due to its security context.

You can instead check the distance between the Camera|Camera’s Camera/CFrame and Camera/Focus to determine if the local user is in first person mode. For example:

local camera = workspace.CurrentCamera
local distance = (camera.CFrame.p - camera.Focus.p).magnitude 
local isFirstPerson = distance <= 0.5

Parameters

Name Type Default Description

Whether the local user’s Camera is entering or leaving first person mode