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

How can i save leaderboard? Plz Answer.

Asked by 9 years ago

Hello I created a script with SaveNumber() And LoadNumber()

In server I was testing it. I wrote:

game.Players.vincius0000:SaveNumber("VincTesting", 5)

Then I wrote.

print(game.Players.vincius0000:LoadNumber("VincTesting"))

And it printed number 5. But I need it to work with leaderboard. I don't know how can I save and load my leaderboard. I tried loading with

game.Players.vincius0000.leaderstats.KOs.Value = LoadNumber("VincTesting")

I tried everything that I know. And I know that there is simple mistake. Plz Help Me Find It.

0
Hard huh? vincius0000 0 — 9y
0
game.Players.vincius0000.leaderstats.KOs.Value = game.Players.vincius0000:LoadNumber("VincTesting") I have no experience with data persistence or data store so i don't really know. Perci1 4988 — 9y

Answer this question