while true do
wait(5)--intermission
maps = game.ServerStorage.Maps:GetChildren()
map = maps[math.random(1, #maps)]
map:Clone().Parent = game.Workspace
blue = 0
red = 0
local teamplay = game.Players:GetChildren()
for i = 1,game.Players.NumPlayers do
local ran = math.random(1,game.Players.NumPlayers)
if blue == red then -- if they are the same it is randomely generated
br = math.random(1,2)
if br == 1 then
teamplay[ran].TeamColor = BrickColor.new("Bright blue")
elseif br == 2 then
teamplay[ran].TeamColor = BrickColor.new("Bright red")
end
elseif red >= blue then
teamplay[ran].TeamColor = BrickColor.new("Bright red")
elseif blue >= red then
teamplay[ran].TeamColor = BrickColor.new("Bright blue")
end
end
How come when I enter "Play Solo" none of the teams actually appear onto the leaderboard?

1 comment
I figured it out. I did not add any teams that were the color of Bright blue or Bright red.