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

Button to prompt gamepass won't work?

Asked by 5 years ago
Edited 5 years ago

It won't work and I have absolutely no idea why! It debugs when you click it but other than that



local productId = script.Parent.Name local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() print ("debug") game:GetService("MarketplaceService"):PromptGamepassPurchase(player, productId) end)

1
Fix your code blocks to make the code easier to read; you can click the preview button before posting your question to see what the question will look like. EzraNehemiah_TF2 3552 — 5y

Answer this question