Here's the script:
repeat wait() until game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character.Parent ~= nil and game.Workspace.CurrentCamera
local runService = game:GetService("RunService") local player = game.Players.LocalPlayer local character = player.Character local camera = game.Workspace.CurrentCamera
runService:UnbindFromRenderStep("killcam") camera.CameraType = Enum.CameraType.Custom camera.CameraSubject = character.Humanoid
character.Humanoid.Died:connect(function()
pcall(function()
local killer = character.Humanoid:findFirstChild("creator")
if killer then
local alpha = 0.1 --0.5/2
local startCFrame = camera.CFrame
local killerChar = killer.Value.Character
camera.CameraType = Enum.CameraType.Scriptable
runService:BindToRenderStep("killcam", 0, function()
if killerChar and killerChar:FindFirstChild("Head") then
local endcf = killerChar.Head.CFrame * CFrame.new(0, 5, 10)
camera.CFrame = CFrame.new(camera.CFrame:lerp(endcf, alpha).p, killerChar.Head:GetRenderCFrame().p)
end
end)
end
end)
end)