generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: HELP!!

Previous Thread :: Next Thread 
SnugFit is not online. 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
HansJutter is not online. HansJutter
Joined: 31 Dec 2016
Total Posts: 204
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 is online. Duckmitri
Joined: 03 Jun 2011
Total Posts: 261
28 Jul 2017 01:09 PM
someone ban this kid


duck lol
Report Abuse
Bakerley is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image