SnugFit
|
  |
| Joined: 25 May 2014 |
| Total Posts: 88 |
|
|
| 28 Jul 2017 12:09 PM |
Players = game.Players:GetChildren() for i,v in pairs(Players) do if v.TeamColor == Red then v = R elseif v.TeamColor == Blue then v = B end end game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) if R > 1 then player:Remove() end if B > 1 then player:Remove() end if G > 1 then player:Remove() end if Y > 1 then player:Remove() end end) end)
How do I add 2 more teams?
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2017 01:06 PM |
easy.
local HO#################ahHumbug Players = game.Players:GetChildren() for i,v in pairs(Players) do if v.TeamColor == Red then v = R elseif v.TeamColor == rEALLY rEALLY rEALLY bRIght Raeld. tTHEM, THEN. THAN THEN THEN THAN THEN THAN THAN THAN THEN THAN THEN STATRAES URE SAOURCE!!!!
--OH YEA THIS IS THE SWAG WOOOOOOOOOOOOW v = B end end end end end end) end() end end() end) end end() end end game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) player.CharacterAdded:connect(function(character) player.CharacterAdded:connect(function(character) player.CharacterAdded:connect(function(character) player.CharacterAdded:connect(function(character) if R > 16666 then player:Remove() end if B > 6666 then player:Remove() end if G > 1 then player:Remove() if R > 1 thenif R > 1 thenif R > 1 thenif R > 1 thenif R > 1 thenif R > 1 then end if Y > 4352 then player:Remove() player:DOTHEHUMGUBGU RIGHT NOW DO IT NOW OMG DO THE HUMBUGSDHUGFFNJIKMCXV,L. bahHumbug() end end) end) end end end end end end end end end end end end end end end end end end end end end end end end |
|
|
| Report Abuse |
|
|
Duckmitri
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 261 |
|
|
| 28 Jul 2017 01:09 PM |
someone ban this kid
duck lol |
|
|
| Report Abuse |
|
|
Bakerley
|
  |
| Joined: 12 Oct 2009 |
| Total Posts: 12011 |
|
|
| 28 Jul 2017 01:12 PM |
In the for loop, just add this before the "end":
elseif v.TeamColor == "[Desired team colour]" then v = [desired value] elseif v.TeamColor == "[Desired team colour]" then v = [desired value]
There are a few errors with this code, though. Try and spot them and I'll give you a hand if you need it. |
|
|
| Report Abuse |
|
|
|
| 28 Jul 2017 01:16 PM |
You will also need to specify a BrickColor, not just a string.
if v.TeamColor == BrickColor.new("Bright red") then
etc. |
|
|
| Report Abuse |
|
|