Motor 6d not working with humnaoid inside arm

Im using a system that cuts limbs. And for that i need humanoids in my arms etc.

But that system breaks my motor 6d.
(a picture of it)

here is the script inside the tool,

Thank you