local J={}local H=game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")function J.PromptGamePass(J,Q)H:PromptGamePassPurchase(J,Q)H.PromptGamePassPurchaseFinished:Connect(function(J,H,m)if m==true and H==Q then return true end end)end function J.OwnsGamePass(J,Q)local m=false local D=pcall(function()m=H:UserOwnsGamePassAsync(J.UserId,Q)end)if m==true then return true else return false end end return J
local Marketplace = {}

local MarketplaceService = game:GetService("MarketplaceService")

function Marketplace.PromptGamePass(player, gamePassId)
	MarketplaceService:PromptGamePassPurchase(player, gamePassId)

	MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, purchasedPassID, purchaseSuccess)
		if purchaseSuccess == true and purchasedPassID == gamePassId then
			return true
		end
	end)
end

function Marketplace.OwnsGamePass(player, gamePassId)
	local hasPass = false

	local success = pcall(function()
		hasPass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamePassId)
	end)

	if hasPass == true then
		return true
	else
		return false
	end
end

return Marketplace
