|
| 04 Sep 2014 04:48 PM |
I have a row of frames and I want a fading effect I made this but it goes 1 by 1
for i,v in pairs(script.Parent:GetChildren()) do if v.Name ~= "Script" then -- makes it not do anything to a script for i = 1,10 do v.BackgroundTransparency = v.BackgroundTransparency + 0.1 wait(.1) end end end
How can I make it fade more at a time?
I can make the frames all have 1 , 2 , 3 , 4 ect named like that if you want |
|
|
| Report Abuse |
|
|
| |
|
KLGA
|
  |
| Joined: 19 Apr 2014 |
| Total Posts: 2571 |
|
|
| 04 Sep 2014 05:09 PM |
| So do you want like number 1 to fade, then when it's done 2 to fade and so on? |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2014 05:13 PM |
| no I wanted like when number 1 is fading I want number 2 to start fading |
|
|
| Report Abuse |
|
|
KLGA
|
  |
| Joined: 19 Apr 2014 |
| Total Posts: 2571 |
|
|
| 04 Sep 2014 05:14 PM |
| Going to have to run 2+ loops at once, but do a check to change a value when number 1 reaches x transparency, then check when the value is changed to start fading number 2. |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2014 05:16 PM |
wrap the loop that makes it fade in this code:
coroutine.resume(coroutine.create(function()
end)) |
|
|
| Report Abuse |
|
|