So I am trying to make a nice fade in and fade out GUI that happens when I call on it but there is one problem I am having. I have made it fade out by using the code below but I don’t know how to make it fade in. I need some help with this and I have already tried by -1 and -60 and that didn’t work. Even when I but the UI to start at a transparency of 1, it changes itself to fade out so I need help with this.
This isn’t anything changing it before this part of the script.
for loop = 1, 60 do
bg.BackgroundTransparency = loop/60