Here, take this:
Find the “WalkRun” Project and download it to see how I handled it with some additional functionality
It doesn’t prevent you from sprinting while croaching in its actual state but no worries - the only thing you need is same branch you used before:
And here’s the Result:
And also the full BP:
Hope this will help