Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a script for a purchase gamepass button?

Asked by 5 years ago

I’m making a button to buy a gamepass but I can’t seem to get it to work, am I doing something wrong, here’s what I had

script.Parent.MouseButton1Click:Connect(function()
    game: GetService(“MarketPlaceService”):PromptGamePassPurchase(game.Players.LocalPlayer, 000000000)

1 answer

Log in to vote
0
Answered by 5 years ago
script.Parent.MouseButton1Click:Connect(function()
local MPS = game:GetService("MarketPlaceService")

MPS:PromptGamePassPurchase(game.Players.LocalPlayer, 7324827634)
end
Ad

Answer this question