How can I make the TweenPosition one way?
Asked by
8 years ago Edited 8 years ago
So I am currently working on a GUI that involves a lot of TweenPosition and basically I have a script that makes my GUI pop up from the bottom of the screen to the middle of the screen from the click of a button and then if the button is clicked again it will go back down...
here is the script:
01 | local frame = script.Parent.Parent.Parent.Parent:WaitForChild( 'ShopGUI' ).Buttons |
02 | script.Parent.MouseButton 1 Click:connect( function () |
03 | if toggle = = false then |
04 | frame:TweenPosition(UDim 2. new( 0 , 435 , 0 , 800 ), 'In' , 'Back' , 0.5 ) |
07 | frame:TweenPosition(UDim 2. new( 0 , 435 , 0 , 220 ), 'In' , 'Back' , 0.5 ) |
So I have this script to toggle a GUI on and off the screen but I want the GUI to just to go off the screen ... but I don't know how to do it... if anybody can help me do this it would be amazing. THANK YOU!!