Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a text label save for when a player leaves the game and joins again?

Asked by 6 years ago

I am making a money gui so we aren't just using leaderboards, and I want to know how to make it save when a player leaves, and comes back with the same amount of money they had the last server, how would I do that?

0
you have to save the leaderstat not the text label greatneil80 2647 — 6y
0
Use leaderstats and datastores. Then make a while wait loop to make the text label say the amount of the leaderstat. also use player added and player removing! DanielDeJong3 158 — 6y
0
You should update the TextLabel using the Changed event of the leaderstat value, and if you save on PlayerRemoving it's a good idea to delay the server shutdown time using BindToClose. mattscy 3725 — 6y

Answer this question