Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to i add a Speed of a TweenPosition or TweenSize?

I was adding a GUIPOPUP when a tool was activated and the tool popup then Loading Style..

3 comments

0

If you could post the code you have and give a more descriptive explanation.

0

Sorry, i will explain. I add a Debounce on the Tool.Activated Event then i add the on the Event. After the debounce i will :Destroy() the gui. But the problem is the TweenService are so very slow.

0

Did my answer help you or do you need clarification?

2 answers

If you take a look at the link I sent you in the previous post, it tells you the order the tween parameters go in.

https://developer.roblox.com/en-us/api-reference/function/GuiObject/TweenPosition

This will look like this

script.Parent:TweenPosition(Udim2.new(.5,0,.5,0),"Out","Sine",3,true)
--3 is the amount of time it will take to complete the tween.

on the tweenpage(the link above) you can click on each parameter and learn more about what it does.

Here is the order: -EndPosition -EasingDirection -EasingStyle -Time -Override -Callback

P.S. This is the same for TweenSize and TweenSizeAndPosition

It's in the parameters, so You got your tween here.

example:TweenPosition(UDim2.new(#,#,#,#),'Blah','Blah',0.25) -- The 0.25 right there is your time

2 comments

0

Ah, yes, how we all love when we post a perfectly fine script and then some kid links something for "actual format", disregarding the fact that the answer is correct.

This discussion is preserved as it was. New answers, comments, and votes are closed.