How to access a users gamepasses on sale

I have a script that accesses players t shirt on sale, but I’m not sure how to access gamepasses that the player has up for sale, how would I go about doing this?

local MarketplaceService = game:GetService("MarketplaceService")
local IsForSale = MarketplaceService:GetProductInfo(INSERTIDHERE, Enum.InfoType.GamePass).IsForSale

returns true if it is up for sale and returns false if not for sale. you can put the gamepasses up if they are for sale using if statements

1 Like