|
| 05 Mar 2015 10:17 AM |
Update from this: http://www.roblox.com/Forum/ShowPost.aspx?PostID=157229310
local fightbutton = script.Parent
fightbutton.MouseButton1Click:connect(function() function TeamNumbers() TeamA = 0 TeamB = 0 players = game.Players:GetChildren() for i=1,#players do if players[i].TeamColor == BrickColor.new("Bright blue") then TeamA=TeamA+1 elseif players[i].TeamColor == BrickColor.new("Bright red") then TeamB=TeamB+1 end return(TeamA) end return(TeamB) end if TeamA >= TeamB then script.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright red") elseif TeamB >= TeamA then script.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright blue") end end) |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 05 Mar 2015 10:19 AM |
TeamB=TeamB+1 end return(TeamA) end return(TeamB) end if TeamA >= TeamB then script.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright red") elseif TeamB >= TeamA then script.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright blue") end
I think you just defeated the purpose of your own script. |
|
|
| Report Abuse |
|
|
| |
|