Character automatically goes down without crouching

I made this game with a custom character, and I implemented a crouch system.

The issue is that when I go near a part that is higher than my character and has space under it so that i can crouch and go through it, what happens is that it glitches and my player goes down on his own. how could i fix this?


Does your character’s head have collisions? If it does then Roblox is probably automatically moving the character down because the character’s head is a sphere. Try turning off collisions on the head and adding an invisible cube with collisions instead so there are no sloped surfaces on the head.