Problems with Motor6D

Hey all,

I tried to weld a grey part to the HumanoidRootPart by using Motor6D(as shown in the gyazo below). But someone off happened? The movements on my character looks really weird and I don’t know what to do to fix this.

Gyazo link: https://gyazo.com/535f1014f81430a14c37ffd9a06f7aee

The code itself:
local w = Instance.new(“Motor6D”, plr.Character.HumanoidRootPart)
w.Part0 = plr.Character.HumanoidRootPart
w.Part1 = new
w.C0 = CFrame.new(-0.000368118286,-1.31130219e-05, -7.14122009, -0.999999762, 0, 0, 0, 0.999999762, 0, 0, 0, -1)

Any help is appreciated!

1 Like

Not a problem with the Motor6D. Set the part you’re attaching to be massless. Somewhere in your code, wherever new is defined (the grey part), throw in new.Massless = true. Preferably do before you parent the part anywhere.

Don’t use the second argument of Instance.new if you set properties later. This is especially tacky when it comes to physics registration.

@colbert2677 Yoo, bro. Thanks alot, I didn’t know this Massless thing existed until now!