Global LeaderBoard Not working?
So basically, ive been trying to get my leaderboard to work and save, however, there seems to be this annoying error ive never seen before:
03 | local ods = game:GetService( "DataStoreService" ):GetOrderedDataStore(Stat) |
05 | function updateBoard(board, data) |
06 | for k,v in pairs (data) do |
10 | local nametextbox = board.SurfaceGui:FindFirstChild( "Name" .. pos) |
11 | nametextbox.Text = name |
12 | local scoretextbox = board.SurfaceGui:FindFirstChild( "Score" .. pos) |
13 | scoretextbox.Text = score |
19 | local pages = ods:GetSortedAsync( false , 5 ) |
20 | local data = pages:GetCurrentPage() |
21 | updateBoard(game.Workspace.Top 5 ScoreBoard, data) |
oh and if youre wondering here is the other script that goes with it:
03 | DS = game:GetService( "DataStoreService" ):GetOrderedDataStore(Stat) |
07 | for i,p in pairs (game.Players:GetPlayers()) do |
08 | cash = p:WaitForChild( "leaderstats" ).Lvl |
10 | DS:UpdateAsync(p.Name, function () |
11 | local new = cash.Value or 0 |
The error (which ive noted above ^) shows this in the error:
HTTP 429 (HTTP1.1 429 ProvisionedThroughputExceeded);
as well as spamming:
"This Function is not enabled yet!"
without saying what function it is, (but im guessing its that one) ive tryed some research but could'nt find anything.
Thanks for the help, ~ bubs