My uncrouching is causing the game to crash due to an infinite loop/

it sometimes crashes due to an infinite loop being created for no particular reason
my code is on button released (Crouch) then proceeding to the uncrouch function.

hi,
you can try break that loop by adding a DelayTillNextTick Node before proceeding to the UnCrouch function

hope this helps :slight_smile:

cheers :vulcan_salute:

it’s quite hard to tell why something is happening in code, without seeing the code

I have placed it down now
any ideas

hi,
try ro make a bool in it… IsCrouching and set it onPressed and onReleased bool = !bool, maybe it fires twice form time to time, so it can only be reached once for crouch and uncrouch

That worked, thanks a lot