When it comes to GUI's, their position and size values are now UDim2 values. This consists of 4 values. (X, XOffset, Y, YOffset). Basically, if your values are set to X and Y then the number you put in is basically the percent of the entire resolution. An example would be say I wanted 50 pixels of a 1080x1920. the 1080 would be X and you wanted x to be 50. What you would do is divide 50 by 1080. (0.04629629629). Anyway it would be 0.04*100 = 4% of the screen.
Moving on, now you know about the values you want to make sure you know exactly what size and position you want the GUI to tween to.
Example:
Frame:TweenSize(UDim2.new(1,0,1,0), 'In', 'Linear', 1, true)
There are a couple arguments. First one being the UDim value (In this case it will fill the screen because 1*100 = 100%). The second argument is direction based and the third is the tweening style. The number is the amount of time it will take to tween and the last argument is if this tween can be overlapped or not.
For more information on TweeningStyles google: Roblox TweeningStyles
Lastly if you want to tween position just change TweenSize to TweenPosition.
If you need any more assistance comment below.
PS: You can also search up Roblox TweenPosition or Roblox TweenSize for more examples.
2 comments
Position and Size of a GUI are both UDim2 values.
In other words, tween the UDim2s. Look at how the wiki does it if you're still confused.