TweenService
Last updated
Last updated
local TweenService = game:GetService("TweenService")
local Part = script.Parent
-- Setting Tween information
local TweenInfoData = TweenInfo.new(
5, -- Time
Enum.EasingStyle.Linear, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- Number of repetitions (-1 for infinite)
false, -- Reverses
0 -- DelayTime
)
-- Properties to be changed with the tween
local TweenGoals =
{
Position = Vector3.new(-400, 50, -350)
}
local Tween = TweenService:Create(Part, TweenInfoData, TweenGoals)
Tween:Play()