Weird tween movement

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)

Try the position of the pivot.

Not sure what you meant by this, I used PivotOffset and it made it even worse

i meant like set the position of the pivot to where you want the center of rotation to be. also, could you send a piece of your code??

try use CFrame instead of position and rotation

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.