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: Am I Getting Closer?

Previous Thread :: Next Thread 
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
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 is not online. 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
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
05 Mar 2015 10:21 AM
Lol eLunate plz help
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