local TweenService = game:GetService("TweenService")
local TweenPart = workspace.Door1 -- your tween part
local TweenInfo = TweenInfo.new(
1, -- sec
Enum.EasingStyle.Cubic,
Enum.EasingDirection.Out,
0, -- loop
false, -- reverse
0 -- delay
)
local TweenGoals = { -- these are goals which are like properties of the part you can add as many of them like size, position, orientation
CFrame = workspace.DoorPos.CFrame,
}
local TweenTrack = TweenService2:Create(TweenPart, TweenInfo, TweenGoals) -- tween track
TweenTrack:Play() -- plays the tween