I'm working on a script that delete's a player's value when they die, so that they are not in the round anymore.
I have the value stored in ServerStorage inside of a folder named 'PlayersAlive'.
The game detects when a player dies, but I'm not quite sure how to just delete their value instead of the entire list of values.
This is what I have:
elseif Player.Character.Humanoid.Health == 0 then
print "Player died!"
break
end
Not quite sure what to add in here? Thanks for any help, and feel free to ask for more info if you need it.

2 comments
game.ServerStorage.PlayersFolder[Player.Name]:Destroy() --This is assuming the values name is equal to the player's name.
Thank you, I got it to work.