Crouch and sprinting gets mixed together

I tried to make crouch and sprinting. It worked but you can crouch first then hold shift and you can practically slide across the floor. I tried to use values. Didn’t work or I am just dumb.

I tried
when crouch is enabled, sprinting value is false, sprinting script is disabled, and same for sprinting.

hold on nevermind I fixed it

thanks if you wanted to help anyways