MarketplaceService:PromptPurchase() returns "This item is not currently for sale."

Hey, developers.

I am having an issue with MarketpalceService:PromptPurchase. My LocalScript (inside a textbox):

script.Parent.MouseButton1Click:Connect(function()
	local ms = game:GetService("MarketplaceService")
	ms:PromptPurchase(game.Players.LocalPlayer, 1232623616)
end)

However, even when the devproduct is on sale for more then 0 Robux, I get this:
image

This happens in studio and in-game. Happens with any product ID, even when the item is on sale. Is this on my end, or is this a Roblox issue?

Thanks in advance.

2 Likes

Try turning on Studio access to API and then try again

already is on- all security settings are on

1 Like

Even Third Party-sales is switched on?

yup (even though i own the developer product)

Most likely Roblox. Roblox has been going wonky the past few months, randomly stuff stops.

i guessed. ill just want and see if this gets fixed soon. for some reason, it works fine in other peoples games :thinking:

maybe roblox just hates me and doesn’t want me to make money :rofl:

Try using this script instead:

local ms = game:GetService("MarketplaceService")
local button = script.Parent

local cooldown = false

button.MouseButton1Click:Connect(function() 

	if cooldown == false then

		cooldown = true

		ms:PromptProductPurchase(game.Players.LocalPlayer, 1232623616)

		wait(1.5)

		cooldown = false

	end

end)

trying it right now. will update

:laughing: hahha

magically worked. thank you!

2 Likes