So I want it when you click the button it says do you want to buy this gamepass and you click buy
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)