a more advanced sprint for controllers?

so, i already have my game set up with a lot of controls, including sprinting, crouching and heres where the issue is… i have crouch set as a toggle but i would like sprint to be able to disable that toggle… i would also like to click the left thumbstick to initiate sprint without having to hold the thumbstick down… so left thumbstick = sprint on when the thumbstick is above 90%, below this, sprint is off

sooooo, how would i do this?

Press the stick and change the Speed to youre spint speed.
press again and change the speed back to walking.

i never worked with controlers so i cant tell you how you do it with the stick on 90% but i think the stick gives you a Float how far it is pressed forwart. use this to change the speed value.

Greez