local productID = 1318372637 local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptGamePassPurchase(player, productID) end)
COMMUNITY QUESTION
Why doesn't this prompt a purchase? It says "Something went wrong"
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
When you post make sure to make a script, it's much easier to read
Your problem is that this's a LocalScript; You can only prompt the player via the server. :/