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

Datastore not working properly??

Asked by 8 years ago

Hi guys! Any ideas why this doesn't work? :( Is it something to do with DataStore caching?

while true do
local ODS = game:GetService("DataStoreService"):GetOrderedDataStore("Escapes")
local pages = ODS:GetSortedAsync(false, 10)
local Count = 0
local Gui = script.Parent
Leaderboard()
wait(10)
end

Yet just calling Leadboard() works?!

Answer this question