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

How can I print a value in datastore?

Asked by 8 years ago

Hi guys, I'm trying to print the top 3 values in my datastore but it doesn't work for some reason, Points is the name of the real datastore and that datastore works, however when I try to print the top 3 values in that datastore, nothing happens and it doesnt print anything in the output

local ods = game:GetService("DataStoreService"):GetOrderedDataStore("Points")
local pages = ods:GetSortedAsync(true, 3)
    local data = pages:GetCurrentPage() 
        print("Player Key:"..tostring(pair.key))
        print("Player Points(currency):"..tostring(pair.value))

can someone help me please

0
plz help iiverpooi 0 — 8y

Answer this question