Problems with positioning welds

I want to position a weld relative to a dummy’s humanoid root part, however, it eitheir throws a “CFrame expected, got Vector3” error in the output, or a “Vector3 expected, got CFrame” error when I corrected it.

Weld.C0 = (CFrame.new(dummy.HumanoidRootPart.Position) - CFrame.new(0, dummy.HumanoidRootPart.Position.Y,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90)))

You just need to specify the ordering you want

This:

Weld.C0 = (CFrame.new(dummy.HumanoidRootPart.Position) - Vector3.new(0, dummy.HumanoidRootPart.Position.Y,0)) * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))

Shouldnt error
Idk if its what you want though