Block Settings to Stop Crouching?

If you have meshes that you can crouch underneath at different heights, then I would probably setup a trace going from the character upwards and getting the results from ‘Distance’ checking that distance is greater > than X amount before allowing the character to come out of the crouch.