Attatch Component to Skeletal Mesh Socket?

Hello,
I’m trying to attach a gun to a socket placed on the skeletal mesh.

Here in preview mode, its in the right location:

287432-screenshot-13.png

In game, it is spawning at the root of the player and not moving:

287433-screenshot-14.png

FName fngrippoint = TEXT("GripPoint");
    	GunComp->AttachToComponent(GetMesh(), FAttachmentTransformRules::SnapToTargetNotIncludingScale, fngrippoint);

Here is the code to attach it, if anyone could help that would be great!

Thanks!

Have the same problem. Have you managed to solve it?