Why is this acting weird. Basically, as seen in the video, the way the cabinet is rotated makes it act stranger. Even though the part that it’s travelling to is aligned
with the cabinet. Watch this:
local cd = script.Parent.ClickDetector
local tweenservice = game:GetService("TweenService")
local goalpos = {
Position = script.Parent.Parent.Goal.Position
}
local goalori = {
Orientation = script.Parent.Parent.Goal.Orientation
}
local tweeninfo = TweenInfo.new(1,Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 0, false)
cd.MouseClick:Connect(function()
local tween = tweenservice:Create(script.Parent, tweeninfo, goalori)
tween:Play()
local tween2 = tweenservice:Create(script.Parent, tweeninfo, goalpos)
tween2:Play()
end)