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

How would I save leaderboard stats?

Asked by 9 years ago

To elaborate, what I mean is how do I save the value/string/boolean of a "stat" within the leaderboard and to have it load the next the the character plays the game. An example of the script I'll be using so that you can edit it to get what I desire is the following:

01game.Players.PlayerAdded:connect(function(plr)
02local leaderstats = Instance.new("Model",plr)
03leaderstats.Name = "leaderstats"
04 
05local lvl = Instance.new("IntValue", leaderstats)
06lvl.Name = "Lvl"
07lvl.Value = 1
08 
09local cash = Instance.new("IntValue", leaderstats)
10cash.Name = "Gold"
11cash.Value = 100
12end)
0
When you answer this, can you please give me some insight on saving and loading data? MaplebloxX54321 15 — 9y

Answer this question