could someone explain this script to me? How does 'Tweeninfo new' and its variables work. I wanted to understand better
local TweenService = game:GetService("TweenService")
local partToMove = script.Parent
local originalCFrame = partToMove.CFrame
local tweenInfo = TweenInfo.new(
2,
Enum.EasingStyle.Linear
Enum.EasingDirection.Out,
-1,
true,
0
)
local goal = {
CFrame = originalCFrame * CFrame.new(3, 0, 0)
}
local tween = TweenService:Create(partToMove, tweenInfo, goal)
tween:Play()

1 comment
and how does 'Enum' work?