Bullets are not spawning at right direction.

Its works fine if I unparent the tip from the animated humanoid rig Hand. But, when gun tip is child of right hand, the bullet spawn at random direction while they were supposed to be fired at transform.forward and its work fine if I unparent the tip from the armature. but i then not be able to do transforms.

I am using built in IK and I set up Avatar mask too but still not working

At the very least you are are going to have to post your code (Using code tags please).