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)
local Time = 1 local smoothness = 100 for i=1, smoothness do Image.ImageTransparency = Image.ImageTransparency - Time/smoothness --transparence tends to 0, thus making GUI visible. Make sure the GUI starting state has Transparency = 1 wait(Time/smoothness) end