I keep on having this error DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = 560699985
please help this is the code
wait(1)
local ods = game:GetService("DataStoreService"):GetOrderedDataStore("DataStore2")
function updateBoard(board, data)
for k,v in pairs(data) do
local pos = k
local name = v.key
local score = v.value
local dispname = board:findFirstChild("Name"..pos)
local dispval = board:findFirstChild("Score"..pos)
dispname.Text = tostring(name)
dispval.Text = tostring(score)
end
end
while true do
wait(script.Refresh.Value)
local pages = ods:GetSortedAsync(false, 10)
local data = pages:GetCurrentPage()
updateBoard(game.Workspace.HighScore.ScoreBlock.SurfaceGui, data)
end
this is the other code
wait(5)
local score = game:GetService("DataStoreService"):GetOrderedDataStore(script.DataStore.Value)
function script.UploadScore.OnServerInvoke(player)
local inv = player:FindFirstChild(script.Original.Value)
score:SetAsync(tostring(player.UserId), inv:FindFirstChild(script.Score.Value).Value)
end
