Help tweening a door based on rotation of another part

So I have two mock up parts. They are welded together, and when I tween the orientation of the part circled in blue, the second part does not move. The only part anchored is the square. The red is what I want the two parts to do.

On run:
image
Only the square rotates, and the ‘door’ doesnt rotate with it
This might be a stupid question but I would love help

1 Like

Try tweening both parts.

Character limit

1 Like

You can use AlignOrientation to create the desired effect.

https://gyazo.com/aeeed5edf4cc0c298c70d6bb1d9667b8

Note that using this requires a BodyForce to be added in order for the part to not fall.

Example here:
AlignOrientation Demo.rbxl (17.3 KB)

1 Like

Thanks for replying, but I think I explained my question badly, I want it so that the larger part rotates as if it was connected to the cube by an invisible rod