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§
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()
.
1 | local CLICK_BLOCK = script.Parent |
2 | local ITEM_ID = 6156156 |
3 | local Click = Instance.new( "ClickDetector" ,CLICK_BLOCK) |
4 |
5 | Click.MouseClick:connect( function (p) |
6 | game:GetService( "MarketplaceService" ):PromptGamePassPurchase(p,ITEM_ID) |
7 | end ) |
Happy scripting!