local CLICK_BLOCK = script.Parent
local ITEM_ID = 17982057 -- Your Developer Product ID (e.g. 116824324). If you don't know where you can get your ID, then go to this link: http://pic.supersgames.rf.gd/uploads/manual/devproid.png (ID marked in yellow).
local Click = Instance.new("ClickDetector",CLICK_BLOCK)
Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService"):PromptProductPurchase(p,ITEM_ID)
end)
this is a script that is supposed to make it so when a player presses a button a ui will pop up so the player can buy my game pass but the UI won't pop up when you click on it how can we fix this?
And of course, i got this from a tutorial lol

2 comments
The script seems to be working for me. Are you using a LocalScript or a regular Script, and where are you putting the script?
regular script it's simply in a part with an image button