Problem attatching animated weapon as a socket to animated character !!!!!!!!!!!!!

it seems to be facing in the Z + and not centered on the origin … but if it was then it wouldn’t be in the characters hand so how would that work exactly? and the gun is animated to follow the characters hand as well