Another way to do that is changing the character’s humanoid’s CameraOffset property to be in front of the character.
--StarterPlayer -> StarterCharacterScripts
local offset = Vector3.new(0,0,-2)
local character = script.Parent
local humanoid = character.Humanoid
humanoid.CameraOffset = offset
Edit: I messed the offset up, it’s supposed to be Vector(0,2,0).
I changed the Y-coordinates in place of the Z-coordinates and the script works perfectly!
local offset = Vector3.new(0,2,0)
local character = script.Parent
local humanoid = character.Humanoid
humanoid.CameraOffset = offset
I just wanted to point out this error, so that others who have the same problem and visit this topic and copy your script only for the camera to go haywire.