Is it possible to Tween a part relative to another part?

I have a tool that is supposed to take on four different forms. I have models for each tool. Each tool has all of the same parts – however many of the parts have been resized and/or moved. My idea is to take one form of the tool and tween each part’s size and position from the current form into the new form. I believe I could use this (Documentation - Roblox Creator Hub) to instantly change from one form to the other, but I would like to tween it so that it is animated.

I have also thought about changing all of the welds in the tool to Motor6D’s and just animating it using the animation editor. However, if my understanding is correct, Motor6D’s break when they are resized. I also don’t know how I would replace all the welds with Motor6D’s without experimenting with the C0 and C1 properties. This would take an insane amount of time considering there are many parts in the tool.

Is it possible for me to achieve my goal using the tweening service? If not, how might I achieve this?

1 Like

Yes, you can tween a part relative to another part, heres how you might do it:

local YourTween = TweenService:Create(YourPartYouWantToTween, TweenInfo.new(1), {CFrame = ThePartYouWantToBeRelativeTo.CFrame + ThePartYouWantToBeRelativeTo.CFrame.LookVector * HowFarOrLong})

(Ik its messy but it gets the job done)

1 Like

I will give that a try. But wouldn’t this only work if the part I am tweening around is stationary?

1 Like

I mean:
https://gyazo.com/5f4ed552d27184dd1a5631a8dbb50fb2

I don’t see why it has to be stationary?

2 Likes