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

How do I make my intro gui fade in and out after the loading bar ends?

Hello! So I'm trying to make an intro that fades in after the bar ends, and then fades out into the game. Here is my current script, what do I add to it to work? I tried changing the color through the script, but it doesn't work

script.Parent.Parent.Parent.Parent.Enabled = true
wait(1)

script.Parent:TweenSize(UDim2.new(0.1,1,1), "Out", "Linear", 2, true)
wait(0.5)
script.Parent:TweenSize(UDim2.new(0.3,1,1), "Out", "Linear", 1, true)
wait(1)
script.Parent:TweenSize(UDim2.new(0.5,1,1), "Out", "Linear", 1, true)
wait(0.5)
script.Parent:TweenSize(UDim2.new(0.7,1,1), "Out", "Linear", 1, true)
wait(0.5)
script.Parent:TweenSize(UDim2.new(0.9,1,1), "Out", "Linear", 1, true)
wait(1)
script.Parent:TweenSize(UDim2.new(1,1,1), "Out", "Linear", 1, true)


wait(1)
script.Parent.Parent.Parent.Parent.Enabled = false
wait()
script.Parent:TweenSize(UDim2.new(0,0,0), "Out", "Linear", 1, false)

Thanks so much!

2 comments

0

u mean like transparency right?

1

UDim2 requires 4 arguments, scales and offsets * 2, UDim2.new(0,0,0,0) Don't mistake it for a vector. Also I don't think there is a point to lines 4-14. Btw Linear looks nasty on gui's

1 answer

As greatneil80 said: " UDim2 requires 4 arguments, scales and offsets * 2, UDim2.new(0,0,0,0) Don't mistake it for a vector. Also I don't think there is a point to lines 4-14. Btw Linear looks nasty on gui's"

1 comment

0

What do you prefer I use to substitute linear?

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