-- Every players starts on the Grey Team. In otherwords the not playing team. I need this to randomly yet evenly divide the players on the grey team and put them on a "Bright blue" , and "Bright red" team if you make it work ill give 500 rs if you want it.
function Divide_Teams()
math.random(1,2)
player = game.Players:GetChildren()
for i = 1, #player do
if (player[i] ~= nil) then
if math.random = 1 then
player[i].TeamColor.new = BrickColor.new("Bright blue")
if else
player[i].TeamColor.new = BrickColor.new("Bright red")
end
end
end
|