Roblox Tools Hub
Advertisement
🎞️

Roblox Tween Generator

Generate TweenService:Create() code visually — pick EasingStyle, duration, properties and get Lua instantly.

Live preview — Quad Out
local TweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(
    1,                            -- Time (seconds)
    Enum.EasingStyle.Quad,         -- EasingStyle
    Enum.EasingDirection.Out,       -- EasingDirection
    0,              -- RepeatCount (-1 = infinite)
    false,                           -- Reverses
    0                               -- DelayTime (seconds)
)

local goal = {
    Position = Vector3.new(0, 10, 0),
}

-- Replace "part" with your Instance variable
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()

tween.Completed:Connect(function()
    print("Tween finished!")
end)
Advertisement

About Roblox Tween Generator

The Roblox Tween Generator creates complete TweenService:Create() code by letting you visually configure TweenInfo parameters — EasingStyle, EasingDirection, duration, repeat, and goal properties.

TweenService is one of the most used Roblox APIs. It allows you to smoothly animate any Instance property — moving parts, changing colors, resizing UI, fading transparency, and much more. Despite how powerful it is, many developers struggle with the TweenInfo.new() parameter order and the long list of EasingStyle options.

TweenInfo.new() accepts six parameters in a specific order: Time (seconds), EasingStyle, EasingDirection, RepeatCount, Reverses, and DelayTime. Getting any of these wrong produces unexpected results — an animation that doesn't ease correctly, doesn't repeat, or doesn't reverse. Our generator eliminates these mistakes by providing a visual interface with labeled inputs for each parameter.

EasingStyle determines the mathematical curve of the animation. Linear is a constant speed. Quad and Cubic are smooth acceleration/deceleration curves. Sine is the smoothest natural-feeling easing. Back overshoots the target and snaps back. Elastic creates a spring-like bounce. Bounce produces a physical bouncing effect. Each style has distinct behavior and is suited to different use cases.

EasingDirection controls whether the easing applies at the start (In), end (Out), or both (InOut). Quad-Out is the most popular for UI animations because it starts fast and slows down as it reaches the target, creating a satisfying snappy feel. Quad-In is less common but useful for objects leaving the screen. Quad-InOut produces a symmetrical smooth motion.

The goal table defines which properties to animate and their target values. TweenService can animate any numeric or type-compatible property — Position, Size, Color, Transparency, Rotation, CFrame, Volume, and dozens of others. Our generator includes the most common properties with placeholder values so you can quickly configure your tween.

Live preview with CSS approximation shows approximately how the selected easing curve will look in motion. While CSS cubic-bezier cannot perfectly replicate all Roblox easing curves (especially Bounce and Elastic), it gives you a close enough visual reference to choose the right style before testing in Roblox Studio.

How to Use Roblox Tween Generator

  • Step 1: Set the duration in seconds using the Duration input.
  • Step 2: Select an EasingStyle from the grid (Quad, Sine, Back, Bounce, etc.).
  • Step 3: Choose the EasingDirection: In, Out, or InOut.
  • Step 4: Set RepeatCount (0 = once, -1 = infinite), Delay, and Reverses as needed.
  • Step 5: Add goal properties (Position, Size, Color, etc.) with their target values.
  • Step 6: Click "Copy Code" to copy the complete Lua script to your clipboard.
  • Step 7: Click "↺ Replay" to preview the easing animation again.

Use Cases

  • Animating UI buttons, menus, and HUD elements for Roblox games.
  • Moving parts smoothly across the workspace without manual scripting.
  • Creating color transition effects on surfaces and GUI elements.
  • Building intro/outro animations for loading screens.
  • Animating health bars, progress bars, and score counters.

Why Use the Roblox Tools Hub Roblox Tween Generator?

  • Visual live preview of the easing curve before using it in Roblox.
  • Generates complete TweenService:Create() code with correct parameter order.
  • Supports all 11 EasingStyles and 3 EasingDirections.
  • Add up to 8 goal properties with common property presets.
  • One-click copy of the complete, ready-to-paste Lua script.

Frequently Asked Questions

Related Tools

Advertisement