TweenSizeAndPosition (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Trappingnoobs Added example. Didn't utilise all arguments however. |
>SoulStealer9875 Resizes fits better than sizes it down. |
||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
Frame:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(0,0,0,0)) | Frame:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(0,0,0,0)) | ||
</pre> | </pre> | ||
This example tweens a frame to the top left of the parent's size and | This example tweens a frame to the top left of the parent's size and resizes it down to 0. | ||
}} | }} | ||
[[Category:Methods]] | [[Category:Methods]] |
Latest revision as of 17:25, 9 July 2011
TweenSizeAndPosition( UDim2 endSize, UDim2 endPosition, Enum easingDirection = Out, Enum easingStyle = Quad, float time = 1, bool override = false, function callback = nil ) | |
Returns | bool success |
Description: | Smoothly moves a GUI to a new size and position. |
Member of: | GuiObject |
Example
local Frame = script.Parent.Frame Frame:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(0,0,0,0))
This example tweens a frame to the top left of the parent's size and resizes it down to 0.