Hello. For my in game user id system here, how could I search people by their id? I just got the code from the devhub.
function search(player, text)
local ODS = game:GetService("DataStoreService"):GetOrderedDataStore("ArksieData")
local pageSize = 1
local pages = ODS:GetSortedAsync(false, pageSize)
local topTen = pages:GetCurrentPage()
for rank, data in ipairs(topTen) do
local name = data.key
local points = data.value
print(data.key, data.value)
return data.key, data.value
end
end
game.ReplicatedStorage.Search.OnServerInvoke = search