i want to reset player's stats when player died. Stats not saved data will be lost and stats saved data will not be reset. I can create a script that sets the value to 0 for each stats type when the player dies, but I have many types of stats, is there a way to solve this problem faster?
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) char.Humanoid.Died:connect(function() plr.leaderstats.STAT.Value = 0 end end) end)