Help with A Sprinting conditions

You should add a boolean variable called something like IsSprinting and set it to true when you press the sprint button. And then check for it inside your shooting logic. If it is true then don’t let the player shoot.