Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make a GUI fade instead of fading out?

Hi. I recently got a script to make a GUI fade out. It works very well, however I would also want the GUI to fade in. Basically the opposite of what this script does. How can I make that happen? Thanks.

wait(5)

local frame = script.Parent

wait(12.5)

for i = 1,100 do frame.BackgroundTransparency += 0.01 wait(0.001) end

1 answer

You can make the frame transparent by default, and then make it's transparency slowly lower like this:

local frame = script.parent
frame.Transparency = 1

wait(12.5)

for i = 1,100 do
	frame.BackgroundTransparency = frame.BackgroundTransparency - 0.01
end

1 comment

0

Your loop has no yield, therefore it will complete almost instantly. 'wait' has also been superseded by 'task.wait'

This discussion is preserved as it was. New answers, comments, and votes are closed.