I see, okay so
1. Build up a table with random rewards with let's say up to 50 objects (Each should know an image to display aswell as an identifier for the reward)
2. Create a frame with an image label / text label or whatsoever for every single reward in the table
3. Now get a random number, lets say 20 + math.random() * 20 (We want the case to get at least past 20 objects so it doesn't look rigged, but also not above 40 so we won't be able to see the end)
4. Tween the frame to the desired location (I recommend using TweenService), simply calculate the end position from the random number
5. Get your reward info back from the table using info = tab[math.floor(randomnumber)] 6. Magic has been done |