How do i update a part its cframe with the stats from a weld?

I am having an issue where updating a motor6D does not update the cframe correctly and tried manually cframing the part after updating the motor6D, but i cant manage to acomplish this correctly.

I was wondering if someone could help me out with this.

I need to update the cframe based off of the stats from the motor6D/weld.