Character stands up when looking up/down while crouching under any world object

When i’m crouching and lets say I go under something that’s solid like a floor right above my head. Crouch under it > release left ctrl, everything is fine, I cant sprint, cant jump, and move at the actual crouching speed, but when I try looking up or down my character stands up. I don’t know what more to say, ill link a screen shot of my scripts if that’ll help.