Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 12 Aug 2015 08:28 PM |
I know this may seem easy but I never messed around with changing text labels colors on a surface gui because I rarely use surface gui's. I know its RGB but idk how to use it
is it like this?
script.Parent.TextColor3.r = 0 script.Parent.TextColor3.g = 255 script.Parent.TextColor3.b = 0
lel get rekt
|
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 08:29 PM |
| script.Parent.TextColor = Color3.new(1/255, 1/255, 1/255) |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2015 08:30 PM |
script.Parent.TextColor3 = Color3.new(r, g, b)
All 3 of those values are decimals from 0 to 1. Say you wanted color 44, 22, 33 on the color wheel though, you would divide those by 255 to get the decimal.
So:
script.Parent.TextColor3 = Color3.new(44/255, 22/255, 33/255) |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 12 Aug 2015 08:35 PM |
like this?
local color = Color3.new(0, 1, 0) script.Parent.TextColor3 = color
lel get rekt |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 12 Aug 2015 08:36 PM |
yes
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 12 Aug 2015 08:37 PM |
yay it works but how do i make another line change it to really red instead of lime green
lel get rekt |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 12 Aug 2015 08:38 PM |
...
R,G,B
R = 1,0,0 G = 0,1,0 B = 0,0,1
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
Alyte
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 10090 |
|
|
| 12 Aug 2015 08:38 PM |
like this how to make it Really Red
local color = Color3.new(0, 1, 0)
lel get rekt |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 12 Aug 2015 08:46 PM |
| stop helping this skid, we all know his real intentions: he wants to hurt people |
|
|
| Report Abuse |
|
|
Stefan631
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1350 |
|
|
| 12 Aug 2015 09:47 PM |
| script.Parent.TextColor3 = BrickColor.new('Really red').Color; |
|
|
| Report Abuse |
|
|