Servo's speed

Hi everyone!!!
Currently i am trying to use RC transmitter to control the speed of my servo from moving from left to right...
Is this possible? & how would i going to write my code?
Hope any kind soul will reply my question...
Thanks!!! :slight_smile: