I used this script from youtube and it doesn't seem to work. The camera locks into the person who killed you, which works, but the frame doesn't appear and show their profile and their name that killed you. I'd really appreciate if you could help find the error in the script, thanks.
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 image = script.Parent.Frame.ImageLabel
local text = script.Parent.Frame.TextLabel
local frame = script.Parent
hum.Died:Connect(function(killed)
local killer = char.Humanoid:FindFirstChild("creator")
if killer.Value then
local killerChar = killer.Value.Character
local killerName = killer.Value.Name
local killerId = killer.Value.UserId
cam.CameraSubject = killerChar.Humanoid
frame.Visible = true
text.text = killerName
image.image = game.Players:GetUserThumbnailAsync(killerId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size180x180)
wait(10)
script.Parent.Frame.Visible = false
cam.CameraSubject = hum
end
end)
