Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Smooth GUI Tween?

Asked by 10 years ago

How could I make a GUI tween more smoother, It's has a bit of lag. Ill give an example of the function I'm using. Am i doing something wrong?

script.Parent:TweenPosition(UDim2.new(0.17, 0, 0.24, 0), "Out", "Elastic", TweenSpeed, true)

2 answers

Log in to vote
0
Answered by
jav2612 180
10 years ago

The only way to make it "Smoother" would be to experiment with the EasingStyles and see which one you like best. http://wiki.roblox.com/index.php?title=EasingStyle

Ad
Log in to vote
0
Answered by 10 years ago

I normally use Linear which is without slowdowns. Here's how it looks like 5 = time to get to desired size/position

GUI:TweenSize(UDim2.new(2,0,2,0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 5)

Here are the styles:

http://wiki.roblox.com/index.php?title=Tween#TweenSize

Answer this question