--Ok so I wrote up this script:
Part = script.Parent while true do for i = 0,1,0.1 do Part.Transparency = i wait(0.01) end for i = 1,0,-0.1 do Part.Transparency = i wait(0.01) end Part.BrickColor = BrickColor.Random() end
--But it changes when its fully un-transparent, not when it's done with the 2nd for-loop. I know i can just change the brickcolor line to after the 1st for-loop and it would work, but can anyone tell me why it wont change after the 2nd for-loop and changes after the 1st? ( why does it change when its visible and not invisible) Thanks any help would be appreciated
Part = script.Parent while true do for i = 0,1,0.1 do Part.Transparency = i wait(0.01) end Part.BrickColor = BrickColor.Random() --the for loops have to finish before the brick color change happen for i = 1,0,-0.1 do Part.Transparency = i wait(0.01) end Part.BrickColor = BrickColor.Random() end