How can I make a kill cam tween/lerp to the killer's current position even if they are moving?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to have my kill cam slowly move to the killer’s position (even if they are moving)
  2. What is the issue? Include enough details if possible!
    I am not sure how to script the camera subject to slowly go to the target instead of snapping instantly.

Reference: https://youtu.be/Q2m1ZBVeuSc?si=7MB8WBi0-Z-EbulO&t=191

Maybe lerp the camera’s position to the killer’s position before switching the subject?

Assuming you know some things about scripting you should be able to import this script.

local tweenservice = game:GetService("TweenService")

local camera = game:GetService("Workspace").CurrentCamera

local speed = 1 -- how fast the camera will move to the killer in seconds
local offset = CFrame.new(0, 0, 0) -- the camera offset compared to the killer 

camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = killer.Character.Humanoid
tweenservice:Create(camera, TweenInfo.new(speed), {CFrame = killer.Character:WaitForChild("Head").CFrame * offset})
1 Like

i will try this to see if it works, thanks

1 Like

as this does work (kinda) it just transitions the camera to an idle position the killer was in, it doesnt follow to the killer as it was moving until it snaps after the tween is finished. (basically i just want it smooth like how phighting did it.)

1 Like

You would need to put it in a loop so it updates to that position. I don’t think there is any other way I could be wrong.

you basically set the cameratype to scriptable and set the cframe to the killer’s camera part
(i suggest using one) then weld it and set massless to true(the part won’t have a mass so i to wont mess up with the killer), and keep the cframe on the part’s cframe

Thank you guys for your support, I ultimately found a way to solve the issue myself, but with your suggestions included.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.