Say the socket name you have attached pistol to is called ‘PistolHandRight’, is this where you are telling it to spawn tracer and muzzle flash?
If so, that is the reason for this spawning at the hand - as this would be the socket where you have attached the weapon. Maybe create a new socket on the pistol called muzzle and then reference that when calling the muzzle and tracer…