Need help using root motion;

I have created an animation in which the player slides along the ground when they are sprinting, I would like the player to be able to go under tables and low surfaces otherwise there is no point in sliding. Before, I was able to slide under objects but when the animation finished I would reset my position the the spot where I pressed C, then I applied root motion and that no longer happens, but the capsule collider is in the way so I cannot slide under things.
Any help would be AMAZING!
-Usnia

Set Capsule Size on your collision capsule to reflect the new size of your character then set it back when the animation is done.

In the animation? I am unable to find the spot where I would animate the collision capsule… Also thanks SO much for the help!

Where the player presses the slide button, likely in your character bp or controller bp (if in the controller I’d suggest still storing the “sliding” logic in the character). In the ABP you would likely inform the character when you are done sliding via a notify towards the end of the animation. Keep in mind any interrupt logic would also need to call this (for example if the player slides off a ledge and starts the falling animation before ending the slide animation; which would miss the notify event).