misgav11Join Date: 2011-04-21 Post Count: 3418 |
I have high scripting skills but i dont know how to make an animation for text to turn from white to black color? i know its involve "For i =1, #" but im not sure how to do it, can anyone exsplain and help me out? |
|
nate890Join Date: 2008-11-22 Post Count: 21686 |
for i=255,0,-1 do
script.Parent.TextColor3=Color3.new(i/255,i/255,i/255)
end |
|
misgav11Join Date: 2011-04-21 Post Count: 3418 |
What the 0 for? |
|
Colt324Join Date: 2009-08-19 Post Count: 1562 |
goes from 255 to 0, decreasing by 1 each time |
|
nate890Join Date: 2008-11-22 Post Count: 21686 |
for index=start,finish,increase/decrease do |
|
misgav11Join Date: 2011-04-21 Post Count: 3418 |
I see, thanks for the help. |
|
misgav11Join Date: 2011-04-21 Post Count: 3418 |
its not working... |
|
nate890Join Date: 2008-11-22 Post Count: 21686 |
script.Parent
Note that the text color will only change for the parent of the script. |
|
misgav11Join Date: 2011-04-21 Post Count: 3418 |
i know i did it |
|
misgav11Join Date: 2011-04-21 Post Count: 3418 |
so why its not working? |
|
NewFissyJoin Date: 2011-01-03 Post Count: 1303 |
Try this:
for i=255,0,-1 do
script.Parent.TextColor3=Color3.new(1/255*i,1/255*i,1/255*i)
end |
|
misgav11Join Date: 2011-04-21 Post Count: 3418 |
nvm |
|
nate890Join Date: 2008-11-22 Post Count: 21686 |
It does work? I don't see a problem with it.
Did you add a wait? |
|