My current script:
local CLICK_BLOCK = script.Parent local ITEM_ID = 8827494 -- My gamepass local Click = Instance.new("ClickDetector", CLICK_BLOCK) Click.MouseClick:Connect(function(player) game:GetService("MarketplaceService"):PromptGamepassPurchace(player,ITEM_ID) end)
Local Script
local CLICK_BLOCK = script.Parent.ClickDetector local ITEM_ID = 8827494 -- My gamepass CLICK_BLOCK.MouseClick:Connect(function() game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer,ITEM_ID) end)
Hope this helps!