How to make Kill cam

Now this happens now, it could be the killer cam script now.

local cam = workspace.CurrentCamera
local plr = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local imalabel = script.Parent.Frame.ImageLabel
local texlabel = script.Parent.Frame.TextLabel

hum.Died:Connect(function(killed)
	local killer = char.Humanoid:FindFirstChild("creator")
		
	if killer or killer.Value then
		
		local killerChar = killer.Value.Character
		local killerName = killer.Value.Name
		local killerId = killer.Value.UserId
		local image, isReady = game.Players:GetUserThumbnailAsync(killerId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size180x180)
		
		cam.CameraSubject = killerChar.Humanoid
		script.Parent.Frame.Visible = true
		imalabel.Image = image
		texlabel.Text = killerName
		wait(10)
		cam.CameraSubject = hum
		script.Parent.Frame.Visible = false
		
	end
end)