This tweening position GUI will not work? Any fixes? I've checked everything
Hey, this GUI that's supposed to tween a shop down wont work. I am aware that I can't close it, but the opening part won't work. Any fixes? I'd say the only possible error would be in the variables, but im pretty sure the variables are correct. Thanks!
01 | local player = game.Players.LocalPlayer |
02 | local StarterGui = game.Workspace:WaitForChild( "StarterGui" ) |
03 | local ScreenGui 1 = StarterGui:WaitForChild( "Youtube" ) |
04 | local GUI = ScreenGui 1 :WaitForChild( "Background" ) |
05 | local ScreenGui 2 = StarterGui:WaitForChild( "ScreenGuia" ) |
06 | local OpenorClose = ScreenGui 2 :WaitForChild( "Openandclose" ) |
08 | OpenorClose.MouseButton 1 Click:Connect( function () |
09 | GUI:TweenPosition(UDim 2. new( 0.5 , - 200 , 0.5 , - 150 ), 'Out' , 'Bounce' , 1 ) |