Rerig blender bones

I want to re-rig my blender bones to a normal block avatar for a cape. But whenever I try the bone rig breaks and I cant move it. I’ve tried trying to move them to a “HumanoidRootPart” to the part that the bone is on etc etc.


image
image
Any help is appreciated!