Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

script.Parent.MouseButton1Click:Connect(function()
local MPS = game:GetService("MarketPlaceService")

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

This discussion is preserved as it was. New answers, comments, and votes are closed.