Make tween position work with welds?

script:

		local tweenInfo = TweenInfo.new(1.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false)
			tween = TweenService:Create(script.Parent.Aim, tweenInfo, {Size = Vector3.new(5,1,1),Position = script.Parent.Aim.Position + Vector3.new(4.5,0,0)})


			tween:Play()

the aim part is welded using a weld constraint, however, i would like it to follow the weld, instead of going to the position where it was a few seconds ago

2 Likes

Use a RigidConstraint and unanchor the part you want the follow behavior to apply to.
RigidConstraint forces unanchored parts Attachment0 and Attachment1 to have the same world position, and shouldn’t greatly affect performance.

2 Likes

i am trying to move the attachment, but the attachments’s parent. i dont think it would work, since it moves, it brings the character with it

1 Like

yeah no, it didn’t work sadly it didn’t move

1 Like