local productID = 1318372637 local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptGamePassPurchase(player, productID) end)

2 comments

0

When you post make sure to make a script, it's much easier to read

0

Your problem is that this's a LocalScript; You can only prompt the player via the server. :/