So I want it when you click the button it says do you want to buy this gamepass and you click buy
COMMUNITY QUESTION
Script for a GUI that you can click and buy the gamepass?
1 answer
Put this LocalScript in the gui
buybutton = script.Parent
msp = game:GetService("MarketplaceService")
id = 0 --pruduct id here
p = game.Players.LocalPlayer
buybutton.MouseButton1Click:connect(function ()
msp:PromptPruductPurchase(p,id)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Didnt work