|
| 31 Aug 2015 03:29 PM |
So, I have a value that is constantly changing, and I'm not sure why this doesn't work out...
while true do wait(0) if Seat.Damage.Value > 100 then Text.TextColor3.r = 255 Text.TextColor3.g = 0 Text.TextColor3.b = 0 elseif Seat.Damage.Value < 99.9995 then Text.TextColor3.r = 85 Text.TextColor3.g = 255 Text.TextColor3.b = 0
Obviously I did some short handing. Isn't really important to include, I know for sure the short hand is correct, as I used the same short hand to make the value as a changing display text for the Damage.Value on a brick. |
|
|
| Report Abuse |
|
|
|
| 31 Aug 2015 03:33 PM |
| You are doing it wrong, do it like this Text.TextColor3 = Color3.new(255, 0, 0) or Text.TextColor3 = Color3.new(85, 255, 0) |
|
|
| Report Abuse |
|
|
|
| 31 Aug 2015 03:35 PM |
| Someguy you are also doing it wrong, you need to divide the numbers by 255 |
|
|
| Report Abuse |
|
|
|
| 31 Aug 2015 03:38 PM |
| Ahhh, my bad Text.TextColor3 = Color3.new(255/255, 0/255, 0/255) or Text.TextColor3 = Color3.new(85/255, 255/255, 0/255) |
|
|
| Report Abuse |
|
|
|
| 31 Aug 2015 03:40 PM |
Yeah, that looks familiar now. Thanks to the both of you.
Text.TextColor3 = Color3.new(255/255, 0/255, 0/255) - Looks kinda like that.
I don't use GUIs much, so I don't typically know what I'm doing. I remember that with bricks you do the .brickcolor = brickcolor.new(value) but I didn't really remember that GUI colors are the same. |
|
|
| Report Abuse |
|
|