Skip to content

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)
ArgumentDefaultWhat it does
time1Length of one play, in seconds
easingStyleEnum.EasingStyle.QuadShape of the motion curve
easingDirectionEnum.EasingDirection.OutWhether the style applies at the start (In), end (Out) or both (InOut)
repeatCount0Extra plays after the first. -1 repeats forever
reversesfalsePlays backwards after each forward play
delayTime0Seconds 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: Size on a GUI object needs a UDim2, on a Part a Vector3.
  • 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 PivotTo on .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.