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!
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"