local button = script.Parent local ID = Your ID local click = Instance.new("ClickDetector", button)
click.MouseClick:Connect(function(player) game:GetService("MarketplaceService"):PromptPurchase(player, ID) end)
The script is working, but why is the gamepass itself isn't working? It says the item is not for sale. It is on sale and active and available under the store of my game.

1 comment
Thank you, @Heyltzscoop! I learn something new every day.