Gamepass purchaser says "this item is not currently for sale"

When I try to buy a gamepass, It says “this item is not currently for sale”
I also tried with alt. but its not working
image
image

five.MouseButton1Click:Connect(function()
	local ItemID = 243022135 
	
	local MarketplaceService = game.MarketplaceService
	MarketplaceService:PromptPurchase(game.Players.LocalPlayer, ItemID)
end)

2 Likes

Use MarketplaceService.PromptGamePassPurchase instead

4 Likes

Then the roblox purchase button is not even appearing

1 Like

you can’t use PromptPurchase on gamepasses (you can only use it on dev products), show the updated code

have you even verified if that gamepass has sell enabled on the dev portal?

I also changed it for dev product, but it still happens

@MoonScro
He is right, have you checked if it is actually for sale?

It should be not for sale. Check if it’s for sale.

image
image
there are no any setting for make it onsale dev product

U already put a price, which is 80 robux. Hit " Save Changes " and try purchasing the devproduct in ur game, it should work!

1 Like
five.MouseButton1Click:Connect(function()
	local ItemID = 1625492885 
	
	local MarketplaceService = game.MarketplaceService
	MarketplaceService:PromptPurchase(game.Players.LocalPlayer, ItemID)
end)

It still says “This item is not currently for sale”

That’s weird. It’s probably your script that doesn’t work, tho I think it should work.

Let me test your script and see if it’ll work or not.

1 Like

I changed “PromptPurchase” to “PromptProductPurchase” and it works now . Thanks for help

Yea right

and Your very welcome!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.