Right now, this script fades it out... I can't get it to fade in. If someone could help that would be amazing!
1 | for i = 0 ,. 6 , 0.01 do |
2 | script.Parent.Decal.Transparency = i |
3 | wait() |
4 |
5 | end |
To change the outcome of a for loop you can simply switch the first two variables, and then make the third variable negative.
Here is your final script:
1 | for i = . 6 , 0 ,- 0.01 do |
2 | script.Parent.Decal.Transparency = i |
3 | wait() |
4 | end |
I think you need to switch the first two numbers to fade the other way. Also make the number negative.
1 | for i = . 6 , 0 ,- 0.01 do -- Switch the first two numbers to do the opposite. Also make the number negative. |
2 | script.Parent.Decal.Transparency = i |
3 | wait() |
4 |
5 | end |
Try that and see if it works.