Developer product problem I have no clue what's going on

Alright so I’ve spent the past 12 minutes trying to make a developer product, but every time I test it in-game it’s showing someone’s pants / not letting the player buy the actual product at all because it’s off-sale.

Code -

local client = game.Players.LocalPlayer
local mps = game:GetService("MarketplaceService")

script.Parent.MouseButton1Click:connect(function()
	mps:PromptPurchase(client, 1164758128)
end)

Pictures -
image

Hello Quippier, the problem in the output says you have to allow third party sales. So all you have to do is go to the game in studio > Game Settings > Security > Turn On AllowThirdPartySales

I tried that, but its not showing my developer product it’s showing someone’s pants or the product is off-sale.


What happens In game.

Have you checked if the product your selling is onsale?

It’s a developer product how would I check? (sorry if that sounded rude lul)

You would need to go to configure product > sales > put it on sale > mark a price > save

Since you’re prompting a developer product, the correct function would be:

mps:PromptProductPurchase(client, 1164758128)

instead of:

mps:PromptPurchase(client, 1164758128)
1 Like

I didn’t knew there was a difference thank you for the help!

Arc_Cosline found my problem, thank you for trying tho!