How to use easing style on parts?

I want to have an easing style on the model that I am tweening.

Script:

local TweenService = game:GetService(“TweenService”)

local boat = script.Parent

local boatRoot = boat.PrimaryPart

local LaunchInfo = TweenInfo.new()

local LaunchTween = TweenService:Create(boatRoot, LaunchInfo, {CFrame = boatRoot.CFrame + Vector3.new(500, 0, 0)})

wait(3)

LaunchTween:Play()

I want to add the easing style in the “TweenService:Create”, does anyone know how to do it?

1 Like

local LaunchInfo = TweenInfo.new()

Add your easing style (and direction if you want) here. See TweenInfo | Roblox Creator Documentation

local LaunchInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)