How can you change the amount of a DevProduct from Script?

Hello. I’ve recently came around this game that lets you buy a product of any amount.

Basically, you get in the game, you enter an amount and the game prompts a purchase of the amount you asked, while being the same DevProduct. How could I do this?

Thanks,
-Mehdi

3 Likes

I can not seem to understand exactly what you want. Could you please in the future add more detail to your topics so people can grab a better understanding of what you are trying to say. And could you provide more detail in what you want here so we can help, thanks!:grin:

1 Like

Edited so it explains what it’s doing and what I wanna do.

There is more than enough detail in this post.

There is no “easy” way to accomplish what this guy did. There is no roblox function that allows you to do something like this. He probably sends the amount you typed in the textbox to where ever he wants to store it (using HttpService), then sends the request to change the price on the roblox website.

I’m sure someone else will be more specific than I was, as I’m not the most experienced with methods like these.

1 Like

Create a bot that makes developer products you can’t communicate to roblox directly so your going have to communicate to a third party website which then communicates to roblox, keep in mind that you won’t be able to delete the developer products in short httpservice stuff

Hi Mehdi,

Unfortunately there is no way to do this. However, you can create a number of developer products at a variety of different price ranges.

You can also do a bot to generate these.

1 Like

How to do the bot? I just need the URL to POST to.

From a quick look at the game it looks like they have a bot that takes the input you put into the text box and creates a DevProduct of that amount, once it has been created it then requests that you purchase it.

You can tell this because when I put in a test amount of 100 it was named Product Donation 247, this seems to be increasing every time the bot creates a new DevProduct.

If you are wanting the code for the bot you are best speaking to the developers of the place, they may or may not give you the code the bot/game in question.

EDIT:
It seems that Envision Studios (the people behind the donation center) are selling ROBLOX bots to achieve this.

1 Like

The roblox API does not support this, you cannot create DevProducts through the API, as stated in my post above the people that made the donation center have created a bot account that does it manually and then relays back to the game (through a 3rd party) telling the game that it has been created and to charge the user for it.

1 Like

As far as I know, there is no way to do this using the API Roblox give you. However, you can solve this “easily” by using a web server and add/change developer products like that.

It’s pretty simple so-to-speak for a web developer to do. To update a developer product, you can use this Web API: https://develop.roblox.com/docs#!/DeveloperProducts/post_v1_universes_universeId_developerproducts_productId_update

This will allow you to change a developer product’s settings, including price.

7 Likes

This is totally off topic, but I read the original post, and that is what I was referring to. His explanation was fine the way it was. If you read everything he said, and joined the game that linked in his post then you would have understood what he meant.

Please do not respond to this, and stay on topic.

You are awesome. Thanks.
I am a web developer, I was just looking for that link.

1 Like