id = 152033042
script.Parent.MouseButton1Down:connect(function(player)
game:GetService("MarketplaceService"):PromptPurchase(player, id)
end)
I chose a random gamepass id, so do I have to make it under the game in order to work? What else am I doing wrong?

2 comments
Yes, the gamepass has to actually be for something you've made..
Alright, but otherwise it should work?