I cant SetAsync my String Value why ?
local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetOrderedDataStore("PlayerStatsReport")
DataStore:SetAsync(player.UserId, player.Report.Value)
I making report system, my system when player chatted ;report me , its saving his datastore
then I made report list
local isAscending = false
local pageSize = 1
local pages = DataStore:GetSortedAsync(isAscending, pageSize)
local topTen = pages:GetCurrentPage()
for rank, data in ipairs(topTen) do
report.Message
report.Data
report.PlayerName
end
its only example…
most probably GetOrderedDataStore cannot save strings because it cannot sort strings
is there another way to do that?