Increase speed when sliding down a slope (Vice versa)

Hello everyone, I am currently having issues on reversing the original running speed before sliding down a slope. I am basically trying to achieve a sliding system in which dynamically increases the character’s speed if you are running down a slidable slope. The speed will increase until it reaches its cap (1200) and that will be based on how long the slope path is. The part where the speed increases is working correctly however, I am having trouble reversing the character’s speed once they are no longer sliding but instead walking or running. I am using event tick to make this work and here’s what I have so far. Much help would be greatly appreciated! Thanks in advance!

This video should help you with the topic

The video is not available, can you tell which video this was?

hey, can you please tell me what video it was?