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

0

did you add a textbutton?

0

and why do you have game.Players.LID ? Get rid of the L

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

0

it's an image button

0

even as a text button it doesn't work

0

Remove the quotations

0

i did and it still won't work