Why does it say that my gamepass isn't for sale?!

I want my players to be able to buy a gamepass owned by my group. But it says my gamepass isn’t for sale.
image
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)

Hello there!
I think you should be using MarketplaceService:PromptGamePassPurchase instead of MarketplaceService:PromptPurchase, as this is not used for game passes.

I hope this was able to resolve your issue!
Have a nice day!

6 Likes

but if PromptPurchase isn’t used for gamepasses, then why did it work when the game was still under my name?

Well, that’s a question which I don’t have an answer for. But the doing that what I have mentioned above should fix your issue.

1 Like

You either have the wrong ID or the problem is what it’s telling you. It isn’t for sale.

Also, use PromptGamePassPurchase instead of PromptPurchase because gamepasses have their own ID system now, so it could be that as well.

Go on the actual Roblox website and check if you have it up for robux, if you don’t, then that will show.

1 Like