Motor6d not working/inactive?

I am trying to have a motor6d weld the handle of a sword to the right arm of the character. Whenever I create the motor6d it is inactive, I can’t seem to figure out why I have checked for constraints and other things that could be causing it, but I can’t find out why this occurs.

Image of motor6d inactive:
image_2024-11-19_192445257

Script:

could you try removing this line
image
maybe the cframe you are giving is messed up or smthn and it goes inactive

Not working, still is inactive

Your code is creating a weld and parenting it to the character Model, but it looks like there is a line above it that is trying to destroy an existing motor also named “Motor6D” which it expects to find parented to the “Right Arm” part, to the character Model. Is it possible you’re making multiple connections (duplicate motors) because you’re code is looking in the wrong place to clean up previous welds?

Motor6Ds are usually only inactive if there is an existing constraint (including another Motor6D or Weld) already active with the same Part0 and Part1.

i am basically trying to use different sword to make my life easier, by having one for the back and one for normal use. The weld being destroyed is the weld from the previous sword

turns out everything was fine and i was just using the sword from replicated storage :see_no_evil: