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

1 comment

0

plz help