Sliding when crouching?

Hey all! I’ve been working with something recently, and have been trying to set it up so when you’re moving past X, you slide into the crouch, stop, and then start to move at crouching speed.


This is my current attempt but, it really didn’t work. I realize that setting max speed might not be the right way to go about it, but I’m not sure how to really fix it.

Thanks in advance!