link7002
|
  |
| Joined: 26 May 2009 |
| Total Posts: 545 |
|
|
| 29 Feb 2012 05:49 PM |
I'm not a newbie or anything, but I want to grasp the basics. To make this work, what would I have to do? You do not need explain, as I'm sure it explains itself
x = 0
for 1, 10 do -- probaly wrong script.Parent.BackgroundTransparency = x + 0.1 -- the real problom end
I am working with a frame inside a screengui, btw |
|
|
| Report Abuse |
|
|
|
| 29 Feb 2012 05:51 PM |
Close:
for i = 0, 1, 0.1 do -- probaly wrong script.Parent.BackgroundTransparency = i end
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 29 Feb 2012 05:51 PM |
Wait, fade in, or out?
† KMXD † |
|
|
| Report Abuse |
|
|
link7002
|
  |
| Joined: 26 May 2009 |
| Total Posts: 545 |
|
|
| 29 Feb 2012 05:53 PM |
| Either way, I'm literly just trying to find out this function. I once made a script with like 100 lines because I couldn't do this. |
|
|
| Report Abuse |
|
|
|
| 29 Feb 2012 05:56 PM |
Lol.
Fade in:
for i = 1, 0, -0.1 do script.Parent.BackgroundTransparency = i wait(0.1) end
Fade out:
for i = 0, 1, 0.1 do script.Parent.BackgroundTransparency = i wait(0.1) end
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 29 Feb 2012 05:59 PM |
If you make a for loop. You don't need the i = 0 before you say for i = 1, 10 do
|
|
|
| Report Abuse |
|
|