✓ Accepted answer
Well It seems like all of you are clueless.
Firstly
UDim2.new() Takes four arguements . first is X Size , Next is X Offset , Then .. Y Size, and Lastly Y Offset . Which would look like this in a script
UDim2.new(0.1,0,0.2,0)
Secondly
The Method :TweenPosition Also Takes four Arguments. it takes
UDim2 Position , Then Easing Direction , Then Easing Style , And Lastly Time
The Different Easing Directions are:
In
Out
InOut
The Different Easing Styles are:
Quad
Back
Linear
Elastic
Bounce
Sine
Quart
Quint
The Links
Easing Direction
Easing Style
Tweening In General
Example
local frame
frame:TweenPosition(UDim2.new(0.,3,0,0.4,0),'In','Quad',5)
Lastly
Besides :TweenPosition() there is Also :TweenSize() which takes the same arguments as Tween Position but smoothly Changes the Size of the Gui Object.
3 comments
Where is work defined?
i have to define work? I just want to print "work"
Then you'd wanna do print("work"). Altough even if it weren't defined your script wouldn't error