Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

set a player's leaderstat to 0 when they die?

set a player's leaderstat to 0 when they die?

2 comments

0

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.

0

How are we supposed to help you? You need to put down the script before you post something, ok?

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.