Sprinting and Crouching Problem

I figured out a way to make it work by just searching for a video with the built-in crouch node from Unreal. I appreciate you replying and trying to help me out!