Attaching mesh to scaled mesh's bones

Hey team, I’m back with another noob question.. I’m having trouble attaching meshes to bones on my characters. The character models are scaled down a lot via mesh.scaling = (value) and look fine, but when I attach something to the bones driving the character, it floats in space where the bones would have been if the character mesh hadn’t been scaled.

I see the same behavior in the playground, so I’m guessing I set up the bone parenting or the scaling wrong, but I couldn’t find the right way to do it. Any ideas what I’m doing wrong?

Thanks in advance!

Oh, never mind, that sample code was missing the second parameter to attachToBone (the target mesh), and it works when that’s filled in

2 Likes