local ods = game:GetService("DataStoreService"):GetOrderedDataStore("PointScore")

function updateBoard(board, data)
	print("1")
end

while true do
	local pages = ods:GetSortedAsync(false, 10) -- ERROR HERE --
	local data = pages:GetCurrentPage()
	updateBoard(game.Workspace.Lobby.Leaderboard.Board, data)
	wait(0.5)
end

HTTP 503 (HTTP/1. 1 503 Please retry after a few minutes)

I have this leaderboard and it seems to work, but whenever I play I just get this error and I don't know what it means or how to solve it. Any help?

2 comments

0

Maybe the system is getting way too many updates that it can't take it anymore? idk

0

"GetSorted (per page) GetSortedAsync 5 + numPlayers * 2" - http://wiki.roblox.com/index.php?title=Data_store This is part of the restrictions to keep from constant load and save of data that may end up causing stress on the server. You are given 5 requests initially, plus 2 requests for every player in the game, every ten minutes.