I want my players to be able to buy a gamepass owned by my group. But it says my gamepass isn’t for sale.
I mean, this is clearly for sale, right? https://www.roblox.com/game-pass/13826281/Custom-background-music. The only thing I’ve tried so far is making sure I’m using the correct ID, which I am.
This is the script I use
local MpS = game:GetService("MarketplaceService")
local plr = script.Parent.Parent.Parent.Parent.Parent
local ItemID = script.Parent.ItemID.Value
script.Parent.MouseButton1Click:Connect(function()
if MpS:UserOwnsGamePassAsync(plr.UserId, ItemID) then
return
end
print(ItemID) -- 13826281
game.MarketplaceService:PromptPurchase(plr, ItemID)
end)