script.Parent.BackgroundTransparency=0 wait(3) for i=.1,1, .1 do wait(.30) i=script.Parent.BackgroundTransparency end print(script.Parent.Parent.Name .. " has finished.") script.Parent.Parent:Destroy()
It only stays black...waits...then removes it. It doesn't fade! The script is a LocalScript so i cant see the problem. Please help!
To fade you need a For Loop counting up, not down. You want the transparency to be 1 to completely fade it
script.Parent.BackgroundTransparency=0 wait(3) for i = 1,10 do wait(.30) script.Parent.BackgroundTransparency = i / 10 end print(script.Parent.Parent.Name .. " has finished.") script.Parent.Parent:Destroy()