tween gui roblox code example

Example 1: tween size and position roblox udim2

local frame = -- put whever ur frame is
-- unbelievable how grepper doesnt have lua

frame:TweenSizeAndPosition(
	UDim2.new(SIZE), -- tween size
    UDim2.new(POSITION), -- tween position
    Enum.EasingDirection.Out, -- easing direction
    Enum.EasingStyle.Quad, -- easing style
    3, -- time
    false, -- override already tweening position/size
    nil -- call a function when tweening is done?
)

Example 2: tweensizeandposition roblox

local frame = script.Parent

frame:TweenSizeAndPosition(
	Size : UDim2.new(0, 0, 0 0),
    Position : UDim2.new(0, 0, 0 0),
    EasingDirection : "Out",
    EasingStyle : "Linear",
    Tween Duration : 1,
	Override tween : true
    callback Function : foo
)

Tags:

Misc Example