|
| 16 Jul 2013 05:06 PM |
How do I get it to add a certain diget of either red blue or green?
a.B1.TextColor3 = Color3.new (+50/255, 0/255, 0/255)
So like this would add 50 to red. Thx. |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 16 Jul 2013 05:08 PM |
| a.B1.TextColor3 = Color3.new (a.B1.TextColor3.r+50, a.B1.TextColor3.g, a.B1.TextColor3.b) |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 16 Jul 2013 05:09 PM |
It didnt work when i tested it earlier :P
The fact that it dosnt work is the point. I need help fixing it... |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 05:10 PM |
Ok, thx. (Assuming it works scince 2 people posted the same thing o;)
I'll test it real quick. |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 16 Jul 2013 05:25 PM |
Related question:
if a.B1.TexctColor3 =~ Color3.new (255/255, 0/255, 0/255) then
= expected near then...
Basically the script will keep running until 255,0,0 is reached. Any idea how to make it work? |
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 16 Jul 2013 05:26 PM |
You mixed up the two characters of your 'is not equal to' sign. ~= |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 05:28 PM |
| Ahh, thanks. I also just found a typo, lol. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 05:44 PM |
Sorry for all the trouble o; Stuff isnt going my way today.
So I made this...
a = script.Parent b=true c=true d=true while b do a.B1.TextColor3 = Color3.new (255/255, 218/255, 218/255) wait(0.01) if a.B1.TextColor3 ~= Color3.new (255/255, 0/255, 0/255) then a.B1.TextColor3 = Color3.new (a.B1.TextColor3.r, a.B1.TextColor3.g-1, a.B1.TextColor3.b-1) wait(0.01) if a.B1.TextColor3 == Color3.new (255/255, 0/255, 0/255) then a.B1.TextColor3 = Color3.new (a.B1.TextColor3.r, a.B1.TextColor3.g-1, a.B1.TextColor3.b+1) wait(0.01) if a.B1.TextColor3 == Color3.new (255/255, 218/255, 218/255) then a.B1.TextColor3 = Color3.new (218/255, 218/255, 218/255) b=false end end end end
Its not really that long. Anyways, It starts out as the color 218,218,218. It then is turned istantly to 255,218,218. After that, green and blue subtract until the color is pure red(255,0,0). Green and blue are then added until it is 255,218,218 again. Then it is made istantly into 218,218,218 and finally ended. The color just flickers too rapid to see... How else could I write this script? (its not working because b is never made false) |
|
|
| Report Abuse |
|
|