set a player's leaderstat to 0 when they die?
✓ ANSWER ACCEPTED
set a player's leaderstat to 0 when they die?
1 answer
✓ Accepted answer
attempt it next time, please
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character.Humanoid.Died:Connect(function()
Player.leaderstats.Score.Value = 0
end)
end)
end)
1 comment
0
Thank you.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This isn't a forum where we make scripts for you, atleast attempt to do it and show your the code you've tried with.
How are we supposed to help you? You need to put down the script before you post something, ok?