Weird animation issue when making an attack. How do I solve this?

Trying to make an attack. when I don’t use root motion. the animation does not play in Play mode. with root motion I get this animation jank

this is a mixamo animation in case that affects anything