Help with constraints on player movement

Hello UE community,

I have a blueprint sidescroller blue print template i am working with. I have my player able to ragdoll themselves simply by pressing a button and using rama’s plugin can pop back out of ragdoll and be able to run around in the level. the problem is i need the player constrained on the X axis because when they ragdoll they tend to come off the preset value and then get stuck in walls, floors or fall off the level.

I have tried setting the constraints on the character himself, but it does not seem to help. I have locked the X motion values on the physics asset and still am not able to achieve what i am looking for.

Can anyone point me in the right direction?

Thanks