Well, that equation is wrong. Even Matrix transformations are too much for AI. But I did find what I thought it would be:
Motor.Transform = Motor.Part0:ToObjectSpace(WorldSpace) * Motor.C0:Inverse * Motor.C1
But that isn’t it, because I still have this very small offset:
The red part is where the arm should be.