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

Why won't my GUI fade away with this script?

I was making a new game and when I typed out this script, it mostly worked just not the fade part:

while wait(6) do
	script.Parent.N1.Visible = true
	wait(1.5)
	script.Parent.N2.Visible = true
	wait(1.5)
	script.Parent.N3.Visible = true
	wait(1.5)
	script.Parent.N4.Visible = true
	wait(1.5)
	script.Parent.N5.Visible = true
	wait(1.5) 
	script.Parent.Parent:Fade()
end

How do I fix this?

1 comment

0

Im stumped

1 answer

✓ Accepted answer

Visible is a bool, so it only has two values true or false

If you want it to fade then you will have to use background transparency

frame = -- The frame you want to fade away


for i = 0, 1, 0.01 do -- at first i will equal 0 and each time it loops it will increase by 0.01
	frame.BackgroundTransparency = i 
	wait(0.01)
end

If you want to learn more about the for loop here is the wiki page

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