We use cookies on this site to enhance your user experience
Collapse Sidebar


Smoothly moves a GUI to a new DataType/UDim2 position in the specified time using the specified Enum/EasingDirection|EasingDirection and Enum/EasingStyle|EasingStyle.

This function will return whether the tween will play. It will not play if another tween is acting on the GuiObject and the override parameter is false.

See also

  • GuiObject/TweenSize, tweens a GUI’s size
  • GuiObject/TweenSizeAndPosition, tweens a GUI’s size and position synchronously


Name Type Default Description

Where the GUI should move to


The direction in which to ease the GUI to the endPosition


The style in which to ease the GUI to the endPosition


How long, in seconds, the tween should take to complete


Whether the tween will override an in-progress tween


A callback function to execute when the tween completes


Return Type Summary

Whether the tween will play

Code Samples

Tween a GUI's Position

If the GUI is at UDim2.new(0, 0, 0, 0) and you want it to move to UDim2.new(1, 0, 1, 0), you would use:

GUI:TweenPosition(UDim2.new(1, 0, 1, 0))