How to make an luck slider

So i want to make a slider like this:


it starts to sliding somewhere and stops at a certain box i have absolutely no idea how to make it so im not putting scripts or something

Use math.random function to choose the item you want to stop the cursor on, then use math.random again to choose between 0 and 1, in decimals, then start the slider, generate the upcomming items randomly, when the slider stops de-accelerating, calculate the time it will take it to stop. Then divide the time by the time taken to cover 1 box, then the no. you will get is the no. of after how many boxes the slider will stop, for eg if we get N, the slider would stop at N-th box and the N-th box should be the item that was selected by math.random previously,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.