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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 02 Jul 2013 01:34 PM |
The reason that you are getting 32552 is because 255 * 255 = 32552.
|
|
|
| Report Abuse |
|
|
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 |
|
|