Crouch system glitches player inside stairs

Im making a crouch system but whenever the hip height is lowered the player cant climb up stairs and glitches in:

RunService.Heartbeat:Connect(function()
	if hum.MoveDirection.Magnitude >= .1 then
		if is_crouching == true then
			hum.HipHeight = -1.5
		end
	end
end)

Is there any way to make the player be able to step up stairs and not glitch inside?

Disable something that collides (probably not that optimal option) or someway

I think its bc the legs in the animaton are facing back too hard (the bottom face of legs are not touching ground)

Aren’t stairs in games supposed to be an invisible ramp? Just make a ramp going up the stairs. Though it will provide un accurate collisions, it would fix your problem.

Because this is literally how HipHeight works?

Forces HumanoidRootPart X ammount of studs up…
This is literally an intended behavior.

Character can’t go step up when HumanoidRootPart is below stair you want to step.

If the animation is already in the perfect position that you want (I mean if the animation is floor accurate by itself)

You might not need to set the hip height.

I ended up just enabling collision on the humanoid root part whenever crouching, which doesnt let you go up stairs but its the best solution I can find while keeping the hip height the same