local CLICK_BLOCK = script.Parent
local ITEM_ID = 105377704
local Click = Instance.new("ClickDetector",CLICK_BLOCK)
Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService"):PromptPurchase(p,ITEM_ID)
end)
havent tried it out yet but instead of promptpurchase i think trying promptgamepasspurchase will work
local CLICK_BLOCK = script.Parent
local ITEM_ID = 105377704
local Click = Instance.new("ClickDetector",CLICK_BLOCK)
Click.MouseClick:connect(function(p)
game:GetService("MarketplaceService"):PromptGamePassPurchase(p,ITEM_ID)
end)