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: GUI coloring

Previous Thread :: Next Thread 
OKevinO is online. OKevinO
Joined: 05 May 2010
Total Posts: 1036
02 Jul 2013 01:30 PM
how do i color a GUI properly using a script? everytime i use something like:
script.Parent.BackgroundColor3 = Color3.new(225, 225, 225)

it just makes it black, and if i look at the color property, its like (32552, 32552, 32552)

can anyone tell me how to do it properly?
thanks.

♫~DUBSTEP ]V[AY RULE THE WORLD~♫
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
02 Jul 2013 01:32 PM
Color3.new(255/255,255/255,255/255) --white
Color3.new(255/255,0,0) --red
Color3.new(0,255/255,0) --green
Color3.new(0,0,255/255) --blue
Report Abuse
RubiksCubix is not online. RubiksCubix
Joined: 04 Dec 2009
Total Posts: 4243
02 Jul 2013 01:33 PM
I made the same mistake on my own gui.

(1,1,1) is the very whitest, and (0,0,0) is the very darkest.

Is doesn't makes sense, but trust me. Divide whatever numbers you want by 225.

script.Parent.BackgroundColor3 = Color3.new(225/225, 225/225, 225/225)

This should work. Tell me if it doesn't.
Report Abuse
RubiksCubix is not online. RubiksCubix
Joined: 04 Dec 2009
Total Posts: 4243
02 Jul 2013 01:34 PM
The reason that you are getting 32552 is because 255 * 255 = 32552.

Report Abuse
OKevinO is online. OKevinO
Joined: 05 May 2010
Total Posts: 1036
02 Jul 2013 01:38 PM
Ahh! i see, thanks guys :) really appreciate it

♫~DUBSTEP ]V[AY RULE THE WORLD~♫
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