Developer product not on sale

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    sell a Developer Product

  2. What is the issue? Include screenshots / videos if possible!
    afbeelding

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    i dont know what it is or i keep reading over it.
    searched google far and wide, rewrote the code

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local MarketplaceService = game:GetService("MarketplaceService")


script.Parent.MouseClick:connect(function(player)
	MarketplaceService:PromptProductPurchase(player, 1186636780)
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

2 Likes

Does the developer product exists and the developer product id is correct?

Also check the price of the developer product.

afbeelding

afbeelding

alsow hit that update button a couple of times

that wouldnt work because it is prompting the purchase its just a problem with the prompt itself

if the issue was in connect, the popup would not popup.

yeah but this is the example of the devhub

I dont know… This code should be working. Maybe store the product Id as a variable like they do in the tutorial?

such as in

local productId = 1186636780
local MarketplaceService = game:GetService("MarketplaceService")

script.Parent.MouseClick:connect(function(player)
	MarketplaceService:PromptProductPurchase(player, productId)
end)

Are you testing it in studio? Does this also happen in the roblox game client?

no change

same both in test, team test and playing it through the browser (like a normal person)

it’s like the dev product itself is corrupt

try creating a new developer product and use that ID instead.

Using :connect() is deprecated, use :Connect(). Also, if the game is privet, try running the code with it public?

@boeljoet

When the product was created did you forget to set the price originally, if so the DevProduct will never work.

Edit: this is most likely the issue since that dev product was corrupt too!

The fix: create a new dev product.

2 Likes

yeah a new product work. thank you :smiley:

that did not change anything to this bug. but thank you for the info

thank you