what i want is only one player on the red team and all the other players will be at the blue team. and i dont know how to do it
if balanced then
local red = 1
team = math.random(1,2) > i edited it cause its wrong
if team == 1 then
red = red + 1
obj.TeamColor = BrickColor.new("Bright red")
elseif team == 2 then
blue = blue + 1
obj.TeamColor = BrickColor.new("Bright blue")
end
sorry if i did not explained it so well guys wat im actually doing is making teams (its a sword fighting game) and i only want Red team to have only limited players or 1 player

2 comments
ow lol my bad i should have put math.random(1,2)
theres something wrong with your script its says then is expected before local :|