How to write a smooth crouching script in blueprint?

Try setting the mesh position manually during crouch so it remains on the ground. What i mean is setting z position which refers to up axis. I don’t know if it’s gonna work correctly.