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?

7 comments
did you add a textbutton?
and why do you have game.Players.LID ? Get rid of the L
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
it's an image button
even as a text button it doesn't work
Remove the quotations
i did and it still won't work