Tweening is smooth movement and resizing of Gui's. Tweening in roblox is basically a way to beautify your GUIs, and create a more pleasing graphical appearance. Tweening can be used to resize GUIs, move GUIs, or both.
Scripting the Gui to tween your you need to use either "TweenSize" or "TweenPosition" - That is the obvious part.
Frame:TweenSize
Frame:TweenPosition
The next part is WHERE you want it to END!!
(UDim2.new(0.5, 0, 0.5, 0)
So the code will look like this.
Frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0))
BUT the script needs to know WHICH way it will travel. Usually you use "In" or "Out" but you can use "InOut"
So the script will look like this
Frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "In",)
BUTTT the script will also need to know what STYLE you want it to move in. (Normal paced to fast at the end) and stuff like that. there are lots of different ones you can use but my favourite are "Bounce" and "Quad"
The script will look like this
Frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "In", "Quad")
The script needs to know how LONG it will travel.
Frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "In", "Quad", "10")
Last this is not extreemly important. Leave it as false or true.
Frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "In", "Quad", "10", "False")
I hope I helped out :) Thumbs my upppp :D
9 comments
This helped me a lot! Thank you so much!!!!!!!!!!!!
'Tis Ok. I enjoyed writing it. :D
Wait so I can add multiple lines to do one tween session?
I am not sure but this -- Frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "In", "Quad", "10", "False") -- was the final product.
Oh okay. :)
While it is possible to use a string for the time, it is best to use an integer. I recommend removing the quotes from 10. You should also mention that it is ten seconds.
Frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "In", "Quad", 10, "False") --Like this?
yus exactly :)
One important question, Where it says true or false, would I need to trigger that to true when its time for it to tween or do I leave it both true? For close an opening.