I can't figure out where it is yielding causing the "Callbacks cannot yield" error
DataStore:UpdateAsync(tostring(DateInfo.Date()), function(oldTable)
if oldTable then
local newTable = oldTable
local str = "User ["..Sender.Name.."] Command ["..c.."] ".."Players present ["..Playerz.."]"
table.insert(newTable, str)
return newTable
else
local newTable = {}
local str = "User ["..Sender.Name.."] Command ["..c.."] ".."Players present ["..Playerz.."]"
table.insert(newTable, str)
DataStore:SetAsync(tostring(DateInfo.Date()), newTable)
end
end)
