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: How do Colors in Scripts Work?

Previous Thread :: Next Thread 
go2Halewindcom is not online. go2Halewindcom
Joined: 03 Jun 2011
Total Posts: 77
16 Aug 2012 11:59 PM
I want the fire in my flamethrower to be a certain color. All I know so far is that this is red:
firer.Color = Color3.new(1,117/255,57/255)
It's obviously not hex, so how do I find out how to make it green?
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
17 Aug 2012 12:01 AM
I think it would be...:


firer.BrickColor=BrickColor.new("Earth green")
Report Abuse
sonicdiablo is not online. sonicdiablo
Joined: 05 Feb 2009
Total Posts: 1661
17 Aug 2012 12:04 AM
Color3 is RGB.
It divide by 255 because on roblox it can only be numbers between 0 and 1

Totally Green is 0,1,0
Report Abuse
X2F9LRT is not online. X2F9LRT
Joined: 18 Jan 2012
Total Posts: 293
17 Aug 2012 12:06 AM
The color property of fire is a Color3.

You can create one like this:

local color = Color3.new(RED/255, GREEN/255, BLUE/255)
where red is the number for red, green is the number for green and blue for blue.


Further notes:

http://wiki.roblox.com/index.php/Color3
Report Abuse
go2Halewindcom is not online. go2Halewindcom
Joined: 03 Jun 2011
Total Posts: 77
17 Aug 2012 04:11 PM
thanks guys!
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
17 Aug 2012 04:37 PM
You can do this in the properties too, you know.
Report Abuse
Adam335 is not online. Adam335
Joined: 19 Feb 2011
Total Posts: 21464
17 Aug 2012 04:39 PM
But then again, scripts may give a bigger variety of colors. Possibly not.
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