Output says An error occurred
local camera = workspace.CurrentCamera
camera.FirstPersonTransition:connect(function(entered)
if entered == true then
print("entered")
end
end)
Output says An error occurred
local camera = workspace.CurrentCamera
camera.FirstPersonTransition:connect(function(entered)
if entered == true then
print("entered")
end
end)
You could use RenderStepped and get the distance between the camera.CFrame and the HumanoidRootPart's CFrame but 1.5 studs higher (positions), I suggest checking if that distance (magnitude) is under 0.75 or something as that is generally a first person view.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
thank you, I calculated the magnitude and it works, thank you!