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

How do I make a script that will save players stats? (Leaderboard, etc.)

Asked by 10 years ago

I've been wondering how to save leaderboard stats for awhile now. I want to know because I've wanted to make a game where people can earn money, leave, and come back with the same amount of money. Any feedback would be helpful. Thanks! (P.S.) I'm not sure how to use Data Persistence or any of that complicated stuff.

1 answer

Log in to vote
2
Answered by 10 years ago

DataPersistence isn't actually complicated. For stuff like money, you can just do this:

player:SaveNumber("cash",leaderboard.Cash.Value) player:LoadNumber("cash")

And also, somehow I doubt you know how to script. It's quite easy to do DataPersistence.

0
Well, you're right. I hardly know how to script. I'm practicing and I know some basic stuff. Thanks for the answer! UngracefulUnicorn 40 — 10y
0
Btw, my only problem is remembering the more complicated stuff. UngracefulUnicorn 40 — 10y
Ad

Answer this question