Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
i_Rook 18
3 years ago

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!

0
u mean like transparency right? Pitched_mobile 191 — 3y
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 greatneil80 2647 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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"

0
What do you prefer I use to substitute linear? i_Rook 18 — 3y
Ad

Answer this question