Hi all! My code for my Gamepass Shop GUI isn't functioning! Coming up as if the item isn't for sale and that the account hasn't been charged when the item is for sale!
MPS = game:GetService("MarketplaceService")
id = 5917442
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
MPS:PromptProductPurchase(player, id)
end)
As it sits, there's no errors in the script itself! I've researched some ways, yet none seem to function with the new system! All help is appreciated!

7 comments
What's the exact problem?
You told us that it comes up with the message showing that the gamepass isn't for the sale...
You need to configure the gamepass itself and set it for sale...
I've done that, it is for sale. It just says it isn't. I was wondering if there was a problem with the code or what!
Try “MPS:PromptGamePassPurchase”, I think the problem is using a Gamepass ID when it’s expecting a Product ID
Awesome! This was the problem! Thank you so much!!
You’re welcome