Detect slope steepness and adjust speed accordingly?

It’s not quite what I was looking for, I mean literally a way to change the Max Speed variable or something similar because with MaintainHorizontolGroundVelocity to false he still sprints up hills.