Simple tutorial on how to make a slider variable! (Click)
(If you want to change the range, just right click on the slider and press "Change slider range")