Using the pot to change the speed of a servo

So i have a servo spinning at a constant speed and am trying t implement a code that will take a mapped value from a pot and translate it to a rate of speed. Each time the pot increases by 10 degrees, increase the speed. I have no idea how to implement this though, any help is greatly appreciated. Thanks!

What kind of servo? Model number? Webpage link?

You didn't post any code. What have you tried already?

Vilros SC90 and i havnt tried any. I do not know how to implement this or even if its possible

Move the servo 1 degree, wait for some time, move the servo 1 degree, wait... Use the pot to adjust the wait between moves time. Or look at the VarSpeedServo library.