Just do everything without the “flipflop” -> then when you press shift it will increase/decrease the speed to whatever you like (that’s how I made my sprint system)
e.g
orange= sprint speed green= walk speed