Tween generator
Choose how the tween moves, preview the curve and copy the TweenService code.
11 styles every Enum.EasingStyle, previewed · Checked October 16, 2026
EasingStyle
EasingDirection
Tweening a
Goal properties
Quad Out, 0.5s
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local goal = {
Position = UDim2.fromScale(0.5, 0.5),
}
local tween = TweenService:Create(frame, tweenInfo, goal)
tween:Play()How it works
TweenInfo.new arguments
TweenInfo.new(time, easingStyle, easingDirection, repeatCount, reverses, delayTime)| Argument | Default | What it does |
|---|---|---|
| time | 1 | Length of one play, in seconds |
| easingStyle | Enum.EasingStyle.Quad | Shape of the motion curve |
| easingDirection | Enum.EasingDirection.Out | Whether the style applies at the start (In), end (Out) or both (InOut) |
| repeatCount | 0 | Extra plays after the first. -1 repeats forever |
| reverses | false | Plays backwards after each forward play |
| delayTime | 0 | Seconds to wait before each play |
Choosing an easing style
- Quad, Cubic, Quart, Quint: smooth acceleration, stronger as the power rises. Quad Out is a safe default for UI.
- Sine: the gentlest curve. Good for idle bobbing and breathing effects.
- Back: overshoots slightly before settling. Good for buttons and popups.
- Elastic and Bounce: springy or bouncing ends. Use sparingly.
- Linear: constant speed. Good for rotation loops and progress bars.
- Exponential and Circular: very fast start or end.
Common mistakes
- Tweening a property of the wrong type:
Sizeon a GUI object needs aUDim2, on a Part aVector3. - Forgetting
:Play(). Creating a tween does not start it. - Tweening a Model: only the PrimaryPart moves unless you tween a CFrameValue and move the model with
PivotToon.Changed.
Questions
What is the default TweenInfo?
TweenInfo.new() with no arguments plays for 1 second with Quad easing, Out direction, no repeats, no reverse and no delay.
How do I repeat a tween forever?
Set repeatCount to -1, for example TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true) for an endless back-and-forth.
How do I know when a tween ends?
Use tween.Completed:Wait() or connect to tween.Completed. It fires with the PlaybackState when the tween finishes or is cancelled.