Why is my stamina system not working properly

I have 0 idea how to fix this, it feels like a mess. I got it working so that the player cant sprint if they run out of stamina and would have to wait till its fully recharged to be able to sprint again. But now that i’ve added crouching that seems to break everything.

Help would be appreciated