Weirdly, I’m not getting any errors, but I set the roster to {place}. Its not updating
MatchRosters:UpdateAsync(entry.key, function (key, roster)
if not roster[1] == "place" then
print("..")
for index, value in ipairs(roster.value) do
print(value.Name)
if value == Player.UserId then
print("Not putting two of the same user in a list ")
return roster
end
end
local newroster = roster
newroster[#newroster + 1] = Player.UserId
return newroster
else
print("...")
local newroster = {Player.UserId}
return newroster
end
end, 86400)