How do I stop Sprinting whilst Croucing?

you can prevent sprinting by checking if isCrouched before:

You can also plug your Crouch into your sprinting logic

Even better turn that part of code into a funtion

Either create a stop sprint function or modify speed when crouched.

I call a function that adjust speed every time my stance changes.

Many thanks! Functions did worked out like a charm!

Function did helped a ton, many thanks!

Here’s what mine looks like in a prototyping project.

I use enums for each movement state.
Standing, Crouched, Prone… walking, jogging, sprinting etc.

Each individual movement state is used to define a “speed state”.

I use the “Speed State” for a data table lookup and set the given value as the new speed.