I have an image in my GUI and I'd like the image to fade in. My script makes it fade out and I can't understand why. I basically want it to do the opposite of what the script is doing, but every time I change it, the script breaks.
local Time = 1
local smoothness = 100
for i=1, smoothness do
Image.ImageTransparency = Image.ImageTransparency + Time/smoothness
wait(Time/smoothness)

3 comments
Image.ImageTransparency = 1-(i*Time/smoothness)) would also work nicely
Thank you so much!
No problem, just remember transparency 1 = 100% transparent (invisible) and transparency 0 = 0% transparent (opaque) :)