Is this Possible?

Hi,

So lets say I have a form of currency in my game that allows you spend on in-game items. The player does not have enough, and so he chooses to pay to get some, however instead of a specific button with a specific price tag, It requires you to enter the amount of robux you want to spend, and how much of the currency you will get out of it.

For Example:
(I wrote this in JavaScript instead of Luau, but It should still be legible to the average user, considering its very simple code)

var AMOUNT_PER_ROBUX = 5;
// Our Constant

var robux = readInt("How much robux do you want to convert into currency? ");
/* readInt is a prompt normally given to a Player on a website to get
   data from them, which in this case, we are trying to get an integer
*/ 
var conversion = Math.floor(robux * AMOUNT_PER_ROBUX);
/* Once we obtain this information we can then calulate how much the player
will recieve (x * 5) */

println("Robux: R$" + robux + "/nAmount: " + conversion);
// Prints Output

However this may be an issue with Developer Products, is it possible do this without creating millions of Products?

1 Like

the simple answer is no and that’s it.

1 Like

You would technically be able to if you created a developer product for every amount of robux a user could convert; however this would take a long time to set up so most games simply have given amounts of currency for the user to buy.

2 Likes

Thats just inconvenient.

Though, I found an old #feature-requests post here:

1 Like

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