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

Why wont my button prompt a purchase?

Asked by 3 years ago

Ok, so I have a script, it is inside of a TextButton, This is the script----can someone tell me why it will not work? Script:

local Click = script.Parent
game.Players.PlayerAdded:Connect(function(player)
    if Click.MouseButton1Click then
        game:GetService("MarketplaceService"):PromptGamePassPurchase(player,123)
    end
end)

But yeah, I think it works, but it will not run.

0
Lol, I am now more experienced and know that the click event on line 3 was wrong lol. BeestyRamma 0 — 3y

Answer this question