Could anyone help on why this prints coin store as having 0 members even though my “SecondCoinsStore” successfully saves and loads a leaderstat onto the leaderstats board
local DataStoreService = game:GetService("DataStoreService")
local pointsStore = DataStoreService:GetOrderedDataStore("SecondCoinsStore")
local function printTopTenPlayers()
local isAscending = false
local pageSize = 10
local pages = pointsStore:GetSortedAsync(isAscending, pageSize)
local topTen = pages:GetCurrentPage()
print(#topTen)
for rank, data in ipairs(topTen) do
local name = data.key
local points = data.value
print(name .. " is ranked #" .. rank .. " with " .. points .. "points")
end
end
printTopTenPlayers()