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
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
also change the id to your gamepass id. lmk if it works