How to make capsule follow animation?

the only way ive managed to get the same effect of the character moving without the capsule was if enable root motion was unchecked