I double, triple checked that I had the right game pass id yet it shows another game pass which I did not make.
local CLICK_BLOCK = script.Parent
local ITEM_ID = 6156156 -- This is my gamepasses id but it shows up as another item!!!
local Click = Instance.new("ClickDetector",CLICK_BLOCK)
Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID)
end)
(The code block is not working)
Anyways here is the game so you can see for your self: Test Place
You are using :PromptPurchase
when you should be using :PromptGamePassPurchase()
.
local CLICK_BLOCK = script.Parent local ITEM_ID = 6156156 local Click = Instance.new("ClickDetector",CLICK_BLOCK) Click.MouseClick:connect(function(p) game:GetService("MarketplaceService"):PromptGamePassPurchase(p,ITEM_ID) end)
Happy scripting!