Not sure exactly not knowing how your project is built, but it looks like you’re giving it a socket name to attach to, but not what the socket can be found in. Your mesh pin isn’t hooked up right now.
You can have the same socket name in multiple skeletons/meshes…so, I think it really needs a reference to the specific one you want. Right now you’re just saying attach it to the literal string <socketname>, but not saying attach it to the <socketname> found in <theobjectyouwant>.
Why is your mesh pin not hooked up? And are you sure it’s actually attached at the crotch? When I first started snapping weapons to my characters, it would LOOK like they were attached until I moved around, then they’d sit in space floating.
If it is moving with the character, you probably have an offset issue of some kind. For instance, even though my sockets were setup in the right place…the points I needed my weapons to attach at were not set at the original (0,0,0) in Blender…so when I attached them, they’d attach offset. I had to move the mount points to (0,0,0) in Blender then apply the location settings.
Remember every object has an origin point around which it’s transforms work, so if you have a character and its origin is at it’s head rather than its feet, it’s going to attach at its head when you snap it to something.