Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(Player)
- Player.CharacterAdded:Connect(function(Character)
- local Humanoid = Character:WaitForChild("Humanoid")
- Humanoid.Died:Connect(function()
- if Humanoid:FindFirstChild("creator") then
- print(Player, "was killed by", Humanoid.creator.Value)
- else
- print(Player, "was not killed by another player")
- end
- end)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement