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)
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