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

TweenSizeAndPosition

Smoothly moves a GUI to a new size and position. This function will return whether the tween will play. Normally this will always return true, but it will return false if another tween is active and override is set to false.

Parameters

Name Type Default Description
Out
Quad
1
false
nil

Returns

Return Type Summary

Code Samples


GuiObject:TweenSizeAndPosition

The below example would tween a /Frame to the top left of the parent’s size and resize it down to 0.

local frame = script.Parent.Frame
frame:TweenSizeAndPosition(UDim2.new(0,0,0,0), UDim2.new(0,0,0,0))