Root Motion from everything in the Animation Blueprint rotates the Animation

I have tried to create a sliding animation which loops the sliding part as long as the character is sliding in the Blueprint. But in the Animation Blueprint, as long as I used Root Motion Mode From Montages only, the animation was outside of the capsule, and when I set it so “from Everything” it got stuck in the looping part, the sliding never stoped and the Animation started rotating in the capsule.