How would I make a robux marketplace system

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make a marketplace system where players can sell items for robux
  2. What is the issue? Include screenshots / videos if possible!
    I don’t know how to link the product purchase to the item they’re buying
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Looked but found nothing.

If someone could tell me how I would go around making it, It would be much appreciated.

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

like would I use .PromptGamepassPurchasedFinished?

In it’s simplest form you would do something like this:

local MyGamePassID=1234


local function CompleteGamePassPurchase(player, purchasedPassID, purchaseSuccess)

	if purchaseSuccess==true then
		if purchasedPassID==MyGamePassID then
			
			-- Code here to give the player whatever MyGamePass does
			
		end
	end
end


game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(CompleteGamePassPurchase)

What if a player uploads different items twice, each with the same gamepass?

Would it be possible to make a value inside a player that indicates which item they’re about to buy?