Motor6D completely broken for me?

My motor6d completely broke for me. I followed headstackk’s tutorial on animating guns and their parts, and the first time i used motor6d it was fine, nothing broke.
After i decide to add script functionality it completely breaks, even when in studio.
I retried the same tutorial over and over and it still wouldnt work.

I am honestly really mad that it doesnt work properly for me, did i miss anything?
Did anyone have a similiar problem before?

it looks like you set C0 and C1 wrong
I’d work with Attachments to preset them

put one in Part0 where Part1 should attach to. the .CFrame of this attachment will be C0
put one in Part1 where Part0 should attach toz the .CFrame of this attachment will be C1