boeljoet
(boeljoet)
July 9, 2021, 9:23pm
#1
You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
sell a Developer Product
What is the issue? Include screenshots / videos if possible!
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
iBuzzes
(Silly_Ryan)
July 9, 2021, 9:25pm
#2
Does the developer product exists and the developer product id is correct?
Also check the price of the developer product.
boeljoet
(boeljoet)
July 9, 2021, 9:29pm
#3
alsow hit that update button a couple of times
j0uf
(cartifan)
July 9, 2021, 9:35pm
#5
that wouldnt work because it is prompting the purchase its just a problem with the prompt itself
boeljoet
(boeljoet)
July 9, 2021, 9:36pm
#6
if the issue was in connect, the popup would not popup.
boeljoet
(boeljoet)
July 9, 2021, 9:37pm
#7
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)
iBuzzes
(Silly_Ryan)
July 9, 2021, 9:43pm
#9
Are you testing it in studio? Does this also happen in the roblox game client?
boeljoet
(boeljoet)
July 9, 2021, 9:45pm
#10
no change
Are you testing it in studio? Does this also happen in the roblox game client?
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?
Abcreator
(Abcreator)
July 9, 2021, 9:55pm
#13
@boeljoet
When the product was created did you forget to set the price originally, if so the DevProduct will never work.
I’m working on a donation system for my game. I thought this would be simple, and normally it should be; but then I ran into a glitch that had me staring helplessly at the screen for 30 minutes.
Whenever I try to purchase one of the donations, it tells me the developer product is not currently for sale.
[image]
I looked for solutions online and found out that most common cause of this error is using PromptPurchase instead of PromptProductPurchase. I noticed I made that mistake, but then I fi…
Edit: this is most likely the issue since that dev product was corrupt too!
The fix: create a new dev product.
2 Likes
boeljoet
(boeljoet)
July 9, 2021, 10:05pm
#14
yeah a new product work. thank you
Using :connect() is deprecated, use :Connect(). Also, if the game is privet, try running the code with it public?
that did not change anything to this bug. but thank you for the info
@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.
thank you