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 » Scripting Helpers
Home Search
 

How do you change the team color

Previous Thread :: Next Thread 
NerIensNoel is not online. NerIensNoel
Joined: 01 Jul 2013
Total Posts: 770
27 Jan 2014 03:55 PM
Like if it's the team color is green And I want to change it to red In game, what is the script?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Jan 2014 03:56 PM
Define player, also this is just a general idea, you have to do the actual work.

if player.TeamColor == BrickColor.new"Bright green" then
player.TeamColor = BrickColor.new"Bright red"
end
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
27 Jan 2014 03:56 PM
if player.TeamColor == BrickColor.new"(Bright green") then
player.TeamColor = BrickColor.new("Bright red")
end

Or, you could just edit the team colors in studio, unless you are trying to change them in-game.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Jan 2014 03:59 PM
^That is exactly what I just wrote spammer.
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
27 Jan 2014 04:00 PM
Actually the parentheses were necessary, which you forgot, rager.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Jan 2014 04:00 PM
Parenthesis aren't necessary.
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
27 Jan 2014 04:01 PM
--Define player, if it's just one person that gets changed every time, run this.
local playername = "powertool"
local teamcolor = "Institutional white"

game.Players.playername.TeamColor = ("teamcolor")
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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