I'm making a basic intro to my place with a fading GUI when the player joins.
The GUI is supposed to have to delay before it starts fading away. That's what the wait(3) is for.
The problem is the GUI will wait 3 seconds before fading again. Like after 3 seconds the GUI will fade by +0.1. Then after another 3 seconds, the GUI will fade by +0.1 again until the GUI is gone.
I know there is a way to fix it but I don't know that much scripting to know how to fix it. I hope you can understand what problem I'm talking about.
I thought of something like stopping the script of doing wait(3) again but I don't know.
GUI = script.Parent
for i=1,10 do
wait(3)
GUI.BackgroundTransparency = GUI.BackgroundTransparency + 0.1
end

1 comment
Remove the wait(3) from line 4 and place it on line 2