local productID = 1318372637
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(player, productID)
end)
0
When you post make sure to make a script, it's much easier to readBeau1920— 6y
0
Your problem is that this's a LocalScript; You can only prompt the player via the server. :/TheeDeathCaster2368— 6y