i don't get any error in the output and the teams never show up.
admins={"Threatboy101","vinothpizza555"}
game.Players.PlayerAdded:connect(function(player)
if admins[player.Name]then
player.Chatted:connect(function(msg)
if string.sub(msg,1,6)==":Teams"then
repeat wait() until
teams ==game:GetService("Teams") -- A variable for teams
blue =Instance.new("Team", teams) -- The new team
blue.Name = "BLUE" -- The team's name is "Sup"
red =Instance.new("Team", teams)
red.Name="RED"
print("yay")
end
end)
end
end)

1 comment
Don't forget to define the TeamColor for each team..