Hello. What I wanted to ask is, how could I make it so, when a player changes to first-person camera his camera switches to Attached, but when he leaves and enters third-person, he switches back to Follow. Thank you.
You can determine whether the player is in first person or not by checking the distance of the camera Cframe to its focus.
local camera = workspace.CurrentCamera
local from = camera. CFrame.Position
local too = camera. Focus.Position
local dist = (from-too). Magnitude
local firstPersonMode = dist <= 1
Then just do some basic if statement to change the camera mode depending if you’re first person or not
1 Like
Yeah, but when the character is in first-person, the camera would change to Attached, and when he zooms out his camera, it would change back to Follow.