PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
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