How do I attach weapon to my character without breaking animations

I attached my weapon through BP to my ranged unit and my animations broke, been trying to find the root of the problem but I am still quite new to this, any help solving my problem would be highly appreciated, thanks!

if any other information is needed, please ask and I will supply it!

here is a video of the ranged unit in question.

I solved it. Connected the mesh instead of the skeletal mesh