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
01 | script.Parent.Parent.Parent.Parent.Enabled = true |
02 | wait( 1 ) |
03 |
04 | script.Parent:TweenSize(UDim 2. new( 0.1 , 1 , 1 ), "Out" , "Linear" , 2 , true ) |
05 | wait( 0.5 ) |
06 | script.Parent:TweenSize(UDim 2. new( 0.3 , 1 , 1 ), "Out" , "Linear" , 1 , true ) |
07 | wait( 1 ) |
08 | script.Parent:TweenSize(UDim 2. new( 0.5 , 1 , 1 ), "Out" , "Linear" , 1 , true ) |
09 | wait( 0.5 ) |
10 | script.Parent:TweenSize(UDim 2. new( 0.7 , 1 , 1 ), "Out" , "Linear" , 1 , true ) |
11 | wait( 0.5 ) |
12 | script.Parent:TweenSize(UDim 2. new( 0.9 , 1 , 1 ), "Out" , "Linear" , 1 , true ) |
13 | wait( 1 ) |
14 | script.Parent:TweenSize(UDim 2. new( 1 , 1 , 1 ), "Out" , "Linear" , 1 , true ) |
15 |
16 |
17 | wait( 1 ) |
18 | script.Parent.Parent.Parent.Parent.Enabled = false |
19 | wait() |
20 | script.Parent:TweenSize(UDim 2. new( 0 , 0 , 0 ), "Out" , "Linear" , 1 , false ) |
Thanks so much!
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"