Slider script

I have a pie chart movie showing different percentages from 0-100 (goes up in 5s). I also have a slider showing corresponding percentages to control how much is revealed.

Could anyone tell me what script I need to link them so when the slider is moved the pie chart will correspond?

Thank you in advance!