Tweening or lerping camera to follow head or torso

i want to make my camera lag behind a specific body part of the character (mainly the head or torso)
like in this

how would i go about doing this?

i already tried going into the player module and editing the camera to :Lerp() instead of just set the cframe but that just breaks everything

1 Like

tween the camera offset

local plr = game.Players.LocalPlayer
local char = script.Parent
local hum = char:WaitForChild("Humanoid")
local rootpart,head = char:WaitForChild("HumanoidRootPart"),char:WaitForChild("Head")
game:GetService("RunService"):BindToRenderStep("CameraOffset",Enum.RenderPriority.Camera.Value-1,function()
	game:GetService("TweenService"):Create(hum,TweenInfo.new(0.3),{CameraOffset = (rootpart.CFrame+Vector3.new(0,1.5,0)):pointToObjectSpace(head.CFrame.p)}):Play()
end)

-- SET HEAD TO SOMETHING ELSE TO CHANGE CAMERA TRACK OBJECT (works in real time)

this should be in starter character scripts

1 Like

thank you, this works really well
do you think theres any way i could also make it lag behind the character in some way
its fine if not

1 Like

i guess you could increase the .3 inside the tween to a higher number

no, thats wrong, sorry, it doesnt work

oh alright, ill keep looking for a solution then

Maybe TSBG uses cutscenes. You should try cutscenes.