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

How do i save leaderstats for every game?

Asked by
otto045 41
6 years ago

Hello, I have set up a system with money. Now I can't seem to figure out how to save the money in the cloud, so the player can join any game, with the same amount of money that he had before.

How I set up the money leaderstat thingy

game.Players.PlayerAdded:connect(function(player)
 local folder = Instance.new("Folder",player)
 folder.Name = "leaderstats"
 local currency1 = Instance.new("IntValue",folder)
 currency1.Name = "Cash"
0
Yes, thank you :) otto045 41 — 6y

Answer this question