Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I didn't test it but I think it should work
- _G.deaths = 0
- local player = game.Players:FindFirstChild("PlayerName") -- Replace "PlayerName" with the actual player name
- player.CharacterAdded:Connect(function(character)
- local humanoid = character:WaitForChild("Humanoid")
- humanoid.Died:Connect(function()
- _G.deaths = _G.deaths + 1
- print(player.Name .. " died for the" .. _G.deaths .. " time")
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment