Tweening

Tweening is used to change properties of parts with it changing instantly, and will change to the arguments you choose. Example provided below.

local TweenService = game:GetService("TweenService")

local info = TweenInfo.new(
1: Easing Time (In Seconds)
2: Enum.EasingStyle.(PickyourStyle)
3: Enum.EasingDirection.(In or Out)
4: Repeat Times: (In Numbers)
5: Reverse (bool)
6: Delay (Time before it does the tween)
)

local End = 
{
    (change property here)
    Example:
    Position = Vector3.new(15,15,15); -- END WITH SEMICOLON!!!
}

local MainTween = TweenService:Create(Tween Object, Info Name, Ending Var Name) --Make The Tween

MainTween:Play() -- PLAY THE TWEEN
All Easing Styles.

If you want to Tween Models then:

  1. Choose a root part

  2. Weld all other parts to the root part

  3. Make every part unanchored except root part

  4. Tween root part

For GUI Tweening, follow the format below.

Last updated