workspace.ChildAdded:connect(function(char) if char:FindFirstChild"Humanoid" then char.Humanoid.Died:connect(function() if char.Humanoid:FindFirstChild("creator") then char.Humanoid.creator.Value.PlayerGui.Killed.Frame.Visible = true wait(3) char.Humanoid.creator.Value.PlayerGui.Killed.Frame.Visible = false end end) end end)
I only want this to show up to the person who killed another Player, not both of them (the killer and the victim) cos its supposed to have a message for the killer...
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) char:WaitForChild("Humanoid").Died:connect(function() if char.Humanoid:FindFirstChild("creator") then local killer = game.Players:FindFirstChild(char.Humanoid.creator.Value) if killer == nil then return end killer.PlayerGui.Killed.Frame.Visible = true wait(3) killer.PlayerGui.Killed.Frame.Visible = false end end) end) end)
This might work, it's un-tested