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
 

What's up with Color3?

Previous Thread :: Next Thread 
dfreeze13 is not online. dfreeze13
Joined: 01 Mar 2010
Total Posts: 39
19 Aug 2011 11:17 AM
I put in a script:

gui.BackgroundColor3= Color3.new(255, 0, 0)

and the gui came out Black! Shouldn't it have been red?
Report Abuse
Sam3812 is not online. Sam3812
Joined: 23 Nov 2007
Total Posts: 1703
19 Aug 2011 11:18 AM
you need to use Color3.new(255/255,0,0)
Report Abuse
dfreeze13 is not online. dfreeze13
Joined: 01 Mar 2010
Total Posts: 39
19 Aug 2011 11:19 AM
ok i'll try it
Report Abuse
dfreeze13 is not online. dfreeze13
Joined: 01 Mar 2010
Total Posts: 39
19 Aug 2011 11:20 AM
Thanks, it worked, but I've never had to do that before. Is this a new update?
Report Abuse
Sam3812 is not online. Sam3812
Joined: 23 Nov 2007
Total Posts: 1703
19 Aug 2011 11:22 AM
It's always been like that, R, G and B are all decimals, where 0,0,0 = black and 1,1,1 = white, by dividing each value by 255 you'll get the colour you want.
Report Abuse
dfreeze13 is not online. dfreeze13
Joined: 01 Mar 2010
Total Posts: 39
19 Aug 2011 11:23 AM
Is it different for bricks?
Report Abuse
Sam3812 is not online. Sam3812
Joined: 23 Nov 2007
Total Posts: 1703
19 Aug 2011 11:27 AM
you can use BrickColor.Color = Color3.new(r,g,b)

but most of the time BrickColor is done through a few different ways

BrickColor = BrickColor.White() - Returns white, also works for other colours
BrickColor = BrickColor.Pallet(0-63)
BrickColor = BrickColor.new(Val) Val Could be Color3, a number or a string.

Hope this helps.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
19 Aug 2011 11:29 AM
They're floats. They're always between 0 and 1, inclusive. And it is not a new update.
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