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: BrickColor

Previous Thread :: Next Thread 
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
09 Jan 2013 09:04 PM
say I had a Bright red part in the workspace and I said
print(game.Workspace.Part.BrickColor)
I would get
"Bright red" as the output.

Is there a way that instead of Bright red it could print the colors numerical value of 21?
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
09 Jan 2013 09:04 PM
print(game.Workspace.Part.BrickColor.Number)

¬ LuaLearners Writer
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
09 Jan 2013 09:05 PM

print(Part.BrickColor.Color)


|Paradoxical|
I shun thy heathen, dost thou not know that flames will devour thy mind?
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
09 Jan 2013 09:05 PM
http://wiki.roblox.com/index.php/Color3

Bottom of the page



|Paradoxical|
I shun thy heathen, dost thou not know that flames will devour thy mind?
Report Abuse
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
09 Jan 2013 09:06 PM
it is that easy O_O
Report Abuse
Luc599345 is not online. Luc599345
Joined: 25 Jul 2008
Total Posts: 1169
09 Jan 2013 09:08 PM
Massive, we don't want its RGB, we want its number that ROBLOX associated to the BrickColor.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
09 Jan 2013 09:10 PM
print(BrickColor.new("Bright red").Number)
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
09 Jan 2013 09:11 PM
Oh, Sorry.
I usually use color3s..My bad.



|Paradoxical|
I shun thy heathen, dost thou not know that flames will devour thy mind?
Report Abuse
Luc599345 is not online. Luc599345
Joined: 25 Jul 2008
Total Posts: 1169
09 Jan 2013 09:22 PM
Btw Massive, you shouldn't have two-lines siggy. It's against the rules... hide before the admins see it :O
Report Abuse
textmasterthe9th is not online. textmasterthe9th
Joined: 03 Oct 2008
Total Posts: 752
09 Jan 2013 09:23 PM
Well now I will know how to do it to get the color 3 of a brickcolor to so thankyou :3
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
09 Jan 2013 09:23 PM
[ Content Deleted ]
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
09 Jan 2013 09:24 PM
And for future reference, http://wiki.roblox.com/index.php/BrickColor
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