Animation is not playing because of a child object

I animated a shooting animation for my character and his weapon; the weapon is a child of an empty thats a child to a hand bone. Whenever I animate a transform on the weapon the animation will not play and the character cannot move. I tried my best to describe the situation, sorry if the solution is simple.