Problems with tweening welded part orientations

based on the wiki,

weld.Part0.CFrame * weld.C0 = weld.Part1.CFrame * weld.C1

So weld.C0 = weld.Part0.CFrame:Inverse() * weld.Part1.CFrame * weld.C1
or weld.C1 = weld.Part1.CFrame:Inverse() * weld.Part0.CFrame * weld.C0

Since Part1 is the eye, and we’re changing the eye’s position, you can just replace weld.Part1.CFrame with the new cframe.

1 Like

Turns out this works with Motor6D’s, I highly suggest using those for the eyes instead because Welds are simply for welding 2 parts together and this is the root cause of your problem.

Btw Motor6D’s have the same setup as Weld.
Motor6D’s allow you to manipulate the CFrame of Part1 without making any change to Part0

1 Like

Thank you, it works. Also double thank you for explaining.
The code works perfectly.
The eye does pop out a little bit overtime but nothing I can’t fix.
image

Alright I’ll keep this in mind for the future. Thanks!
:blush:

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