Block Settings to Stop Crouching?

First of all you should create a new variable named “Can_Uncrouch” or something like that. if can_Uncrouch is true you can allow the player to uncrouch if not do nothing.

Also as someone suggested in a answer below, if you want to use the trace method you can use that, i already provided a proof of concept picture on the first question.