I tried making one and all it does is say "this item is not for sale." How do I make it work? Script Attempt:
local MarketplaceService = game:GetService("MarketplaceService")
local button = script.Parent
local player = game.Players.LocalPlayer
button.MouseButton1Click:Connect(function()
MarketplaceService:PromptPurchase(player, (10663110))
end)

4 comments
if it says the item is not for sale, its probably a private gamepass or an invalid gamepass id
The game pass is for sale. However, the game is not public. Could that be the problem?
i think that might be the problem
Okay, I'll see.