I’m making a donation script, and I want it so a player can type a amount in the textbox, and it will keep adding up in dev products until it has reached the price. I have no clue where I should start. Any help would be great!
I made a post about the ScriptersCF donation centre a few months ago which does exactly this. Its source is available on GitHub, so you’re free to have a look and make use of it.
The general idea is that it iterates through a dictionary of developer products, checking whether the price is greater than or equal to the amount that the user has inputted. If so, it prompts them to purchase the product and deducts its price from the inputted value. This is continued until the value becomes 0, which means the total has been paid.