Trouble trying to Spawn Gun on Socket bones

Hello, i started on Unreal this month, trying to build a small scifi shooter. stuck on this part where i need to attach a static mesh to a socket bone, but it spawns far away from the target.
anyone has any tips? couldn’t find anythink of this matter on forum.