Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Item is not currently for sale?

I am making developer products for my game but the prompt keeps saying "Item is not currently for sale." I may be missing something obvious or maybe I typed something wrong? Do I need to add the item to the store in roblox as well? I'm new to dev products, any help is appreciated!

local MarketplaceService = game:GetService("MarketplaceService")
local Button = script.Parent
local Players = game:GetService("Players")
local id = XXXXX

Button.MouseButton1Click:Connect(function()
	local player = Players.LocalPlayer
	MarketplaceService:PromptPurchase(player, id)
	end)

This gets the prompt to pop up, but again, the prompt just says the item isn't currently for sale.

2 comments

1

Try using PromptGamePassPurchase instead of using PromptPurchase: I think the reason it didn't work is because it is because promptpurchase is just used to prompt the purchase not the actual gamepass itself

0

also change the id to your gamepass id. lmk if it works

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.