There's a trick to it. First set the CameraMode property in the player to LockFirstPerson, then go to the CurrentCamera and change the CameraType to Track or any other type except scriptable or custom. Then change the CameraOffset or whatever the property is called in the Humanoid to whatever you want.
Make sure to use a LocalScript inside of the player somewhere, like backpack or playergui.
Example:
I made a localscript in the starterpack
cam = game.Workspace.CurrentCamera
player = game.Players.LocalPlayer
repeat wait() until player:GetMouse()
cam.CameraType = "Custom"
player.CameraMode = "Classic" -- This fixes a glitch with LockFirstPerson
wait()
player.CameraMode = "LockFirstPerson"
wait()
cam.CameraType = "Track"
player.Character.Humanoid.CameraOffset = Vector3.new(2,0,0)
--Make sure to zoom out once you spawn.
|