I have a brick in my place that shows the amount of times people have died, but this resets when nobody is in the game. How would I be able to make this number save?

1	game.Players.PlayerAdded:Connect(function(plr)
2	    plr.CharacterRemoving:Connect(function() 
3	        script.Parent.Text = tonumber(script.Parent.Text)+1
4	    end)
5	end)

This is the working code that I already have. Just need to be able to save the number that it puts on the sign.

2 comments

0

look in to data stores on the wiki. That should help you

0

I'm not the best with changing up code so couldn't really find much help on what I was looking for.