Crouch input is working, but the player is not shrinking/actually crouching

so yesterday i added a sliding mechanic to my game, and that works fine, but for some reason it effected the entire crouching mechanic, it now does nothing even if the sliding logic isnt connected to anywhere and cannot happen, i tried adding some print nodes to print the capsule size and “can crouch” variable and it seems like its slightly reversed, screenshot below shows it, by the way the “false” & “35” is printing on un-crouch and “true” & “88” is printing on crouch. also my bad if im making any mistakes with the topic stuff, im not very familiar with how this forum stuff works.

Hi @JamesDoesNothing ,
Welcome to the Unreal community! No worries, you can ask anything here. Could you show me your code or how you implemented the crouch system so I can see if I can help with your problem?

@BRGEzedeRocco Thanks for the reply! and yes i can show the code, and apologies for the unorganization, another thing i did figure out after some random playtests is that if i jump and then crouch it does seem to do something

Hi @JamesDoesNothing ,
Sorry for the late reply, I hope you’ve already solved it.
If not, I’m leaving a post where I explain how to set up the crouch system, in case you want to check the capsule and animation setup.

Also, try using this code:

In the Completed pin, there’s no need to use a Branch, since once the Crouch function finishes executing, it will automatically call UnCrouch.

And if you want to prevent jumping while crouching, you’ll need to override the CanJump function and do something like this:

That should make everything work properly.
Hope it helps!