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
 

Re: Team Color Help

Previous Thread :: Next Thread 
Awsomisticguy537 is not online. Awsomisticguy537
Joined: 03 Dec 2010
Total Posts: 507
28 Mar 2013 06:44 PM
I have a script that detects team color and gives the player the appropriate armor based of of that team, however this line won't work:

if Player.TeamColor == ("Bright red") then

It dosn't break the script, it just completely skips it over as if it is true, whereas in my tests the player is not on red team. I still get the armor, so everything else works fine. Can someone help?
Report Abuse
FIRECAKE is not online. FIRECAKE
Joined: 28 Feb 2009
Total Posts: 25167
28 Mar 2013 06:45 PM
I believe it is case sensitive

"Bright Red"

⊂=-҉Ξ҉-=⊃ Verb conjugator, plus herb inhalator ⊂=-҉Ξ҉-=⊃
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
28 Mar 2013 06:48 PM
^ No, "Bright red" is correct, as a matter of fact it is case sensitive, and the colors first word is capitalized and the second is not.
Report Abuse
zack785 is not online. zack785
Joined: 06 Feb 2009
Total Posts: 419
28 Mar 2013 06:49 PM
Try if Player.TeamColor = BrickColor.new("Bright red") then, just test it.
Report Abuse
dmjoe is not online. dmjoe
Joined: 01 May 2009
Total Posts: 2387
28 Mar 2013 06:50 PM
To be sure, do this:

 if Player.TeamColor == game.Teams:findFirstChild("YOURTEAMNAME").TeamColor then


~print("pew")~
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
28 Mar 2013 06:52 PM
if Player.TeamColor == BrickColor.new("Bright red") then

Zack, don't forget the dual equals for comparing the value.
Report Abuse
Awsomisticguy537 is not online. Awsomisticguy537
Joined: 03 Dec 2010
Total Posts: 507
28 Mar 2013 06:53 PM
BrikColor.new did it, thanks :D

Though thats kind of weird... I thought that would specifically imply to a brick.
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