I know its a bug, because I have found post
But it is not fixed?
Code:
local success, existsData = pcall(function()
return Datastore:GetSortedAsync(false, 100)
end)
if not success then
return
end
if existsData then
while not existsData.IsFinished do
local page = existsData:GetCurrentPage()
print(page) -- Always the same page, because there only 3 things
for i, dataInstance in pairs(page) do
-- Logic (Nothing unique there though)
end
if existsData.IsFinished then
print("Finishd")
break
else
existsData:AdvanceToNextPageAsync()
end
end
return true
end
I guess I can use some kind of index system and limit the pages to what I need