How to make the camera zoom up to the player's character

I am making a script where after repairing the camera, which was animated, I want it to face the direction of the player and zoom up to the player’s character. Here is the code that i made so far

function module.RepairCamera(CHARACTER)

	local Torso = CHARACTER:WaitForChild("UpperTorso")
	local TorsoCF , TorsoPOS = Torso.CFrame , Torso.Position
	
	workspace.CurrentCamera.CFrame = CFrame.new(TorsoCF.Position,TorsoCF.Position +TorsoCF.LookVector)
	workspace.CurrentCamera.CameraSubject = CHARACTER:WaitForChild("Humanoid")
	workspace.CurrentCamera.CameraType = "Custom"

I got the camera to the face the character’s direction, however I am unable to zoom it up to a certain z offset from the character.

The humanoid has a property that changes the camera offset. Try that

1 Like

Link


Just for a quicker lookup.

Honestly, I forgot this property existed. Solved my problems of attempting to change the zoom of the player’s camera.

2 Likes

Your a life saver thank you very much :slight_smile: