I scripted this code with not a lot of experience with tables and dictionaries, and I really need help 🙏 with what I did wrong.
local team = {["green"] = nil, ["red"] = nil, ["blue"] = nil}
local Team = function(character)
for char, color in pairs(team) do
if color == nil then
character = team[color]
break end
end
end