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.