How do I connect Gun to character hands

I’m new to Unreal Engine 5 and tried making an adventure game, but it went downhill when I had to snap my gun to the character. My gun has now snapped to the legs of my character, and I don’t know why because I made a socket for the hand_r. Here are some pictures that I have so far.

Also, don’t mind the Then 0 and 1, they’re just for a door I made. The last picture shows the gun on the bottom of my legs