How to make a click to spin for rewards?

I do not understand the concept of this. For example, if you click the Spin button, the rewards will spin and it will land on a random reward and you get that reward. What is the concept behind this?

1 Like

What do you mean the concept behind this. You simply have to have to first create a leaderstats, and then a server script that iterates through each type of reward, e.g 10 coins. This script should also handle the weights and you can do that through math.random. Then on a local script is where your tweening should happen, and you use a template image label and clone it for each of your rewards. In replicated storage you could have a script that handles all of your weights or chances, colours, image label id, rarity, etc. You would have to a remote function as well. Hope this helps!

Edit: I forgot to mention this, but the script that handles the weight, colours, etc. should be a module script.

1 Like

This may help you.