Don't want my player to move while crouched

So I don’t want the player to be able to translate while he is in the crouch position. I have assigned the LeftControl key to crouch using GetKeyup() and GetKeyDown(). I have tried using “movement.enabled= false;” but I don’t know how do l implement it the right way.( movement is an instance of movement script).

you can make static int or bool like public static bool iscrouch;
and go to movement and if you use rigidbody.MovePosition you can make if(!AnimationScript.iscrouch){

if that don’t help can you describe the problem more ?