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

How to make a proper game pass script?

Asked by 3 years ago
local ID = "11854375" -- add your gamepass ID here
script.Parent.EnterProduct.Buy.MouseButton1Click:Connect(function()
    game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer, ID)
end)

i put the id of my own gamepass and i took a script from someone on this website but my cursor can't click on the button any ways to fix this?

0
did you add a textbutton? Xyternal 247 — 3y
0
and why do you have game.Players.LID ? Get rid of the L Xyternal 247 — 3y
0
did you add a textbutton? Also make sure it is a local script and not a normal script, and make sure the local script is attached to the text button oh_blah 10 — 3y
0
it's an image button dylancrazy88 20 — 3y
View all comments (3 more)
0
even as a text button it doesn't work dylancrazy88 20 — 3y
0
Remove the quotations Jo1nts 134 — 3y
0
i did and it still won't work dylancrazy88 20 — 3y

Answer this question