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

How do I save leaderstats?

Asked by
Prekzz 0
2 years ago

Trying to save gold coins, gems, and copper coins.

1 answer

Log in to vote
0
Answered by 2 years ago

You'll need a DataStore in order to save Leaderstats. First, Go to the top left on studio then go to File->Game Settings->Security->Turn on Studio API services. Now you'll need a tutorial of some sort to set up datastores. Since you are dealing with multiple leaderstat Values you will need Tables. Here's a link to an easy DataStore tutorial (with tables); https://www.youtube.com/watch?v=uymO9RtlxTo <- note in this video he uses 2 IntValues and 1 StringValue. an IntValue is when you are dealing with Numbers. A string value is with Letters. I hope this helped!

Ad

Answer this question