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

I'm making a saving leaderboard it's not working?

Asked by 4 years ago
Edited 4 years ago

I have API Services on and it's not working. THANKS TO OFF_S4LE FOR FINDING THE LINK TO FIX THIS. To fix this take this ; and turn it into : this. At the start of the script with the data store part.

01local datastore = game;GetService("DataStoreService")
02local ds1 = datastore;GetDataStore("WinsSaveSystem")
03local ds2 = datastore;GetDataStore("CashSaveSystem")
04 
05game.Players.PlayerAdded:connect(function(plr)
06 local folder = Instance.new("Folder", plr)
07 folder.Name = "leaderstats"
08 local wins = Instance.new("IntValue", folder)
09 wins.Name = "Wins"
10 local cash = Instance.new("IntValue", folder)
11 cash.Name = "Cash"
12 
13 wins.Value = ds1:GetAsync(plr.UserId) or 0
14 ds1:SetAsync(plr.UserId, wins.Value)
15 
View all 26 lines...

SOLVED

1 answer

Log in to vote
1
Answered by
OFF_S4LE 127
4 years ago

tis but a simple' https://www.youtube.com/watch?v=dRQzgP7zApU&t=81s

Ad

Answer this question