t = game.Workspace.TARDIS:GetChildren() for i,v in pairs(t) do for i = 0, 1, 0.1 do v.Transparency = i wait(0.1) end end -- Not fading all at once. It's fading 1 parts to another. I want it to fade all at once!
01 | local Model = game.Workspace.TARDIS |
02 |
03 | for i,v in pairs (Model:GetChildren()) do --Collects all the items in the model. |
04 | if v:IsA( "Part" ) then --Checks to make sure that item is a part. |
05 | coroutine.resume(coroutine.create( function () --When the script is read, roblox runs this function while reading everything else after it. |
06 | for i = 1 , 10 do --Loops 10 times. |
07 | t.Transparency = t.Transparecy + 0.1 --Keeps making the part disappear. |
08 | wait( 0.1 ) |
09 | end |
10 | end )) |
11 | end |
12 | end |