How to Move a character while having root motion

Hi guys…

How can I move my character while it has root motion simultaneously.
Specifically, I want to only rotate from Animation and move the location from Code/Blueprint.