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

How would I get an infinite amount of GetSortedAsync?

Asked by 4 years ago

game.Players.PlayerAdded:Connect(function(plr) local DataStore = game:GetService("DataStoreService"):GetDataStore('DataStore'..plr.UserId) local DataStoreODS =game:GetService('DataStoreService'):GetOrderedDataStore('DataStore'..plr.UserId) local pages = DataStoreODS:GetSortedAsync(false, 500):GetCurrentPage() --[[ what i want is i want to get every single thing in get sorted async not just 500 if i do math.huge itll give me a error if i do 5000 it'll give me an error all I want is to get every single thing in GetSortedAsync not just to a certain number --]] end)

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Error code 106 as dictated on this page says that the max page size is 100 for OrderedDataStores.

To access more information after that you have to use the AdvanceToNextPageAsync Function

Ad

Answer this question