Need Help About MarketplaceService

i want players to be able to sell in-game items for robux by linking their t-shirt / gamepass, to the item marketplace prompt purchase, but how to do that? the game starving artist have that feature and im not sure yet but i think pet simulator x also have that feature for players to sell in-game pets for robux

Your code should do something like this:

  1. Let a player choose an in-game item to sell;
  2. Ask the player to insert his product ID of his t-shirt or gamepass;
  3. Use game:GetService("MarketplaceService"):GetProductInfo(ID).PriceInRobux to assign a price in Robux to the chosen item;
  4. Do some coding to let other players buy the item for Robux.

Consider providing Your attempt of scripting this system. I provided a general way of making this system.

i see, and how to get a event when the player bought the item and to figure out if the bought item is for the certain in-game item? thanks

I think that it would be easier to explain by making a simple game to explain it. Is it okay if I do it?

very much appreciated
–characters–

1 Like

Are the in-game items tools?
-characters-

a folder with number values in it representing their stats

but even if its tools, i can manage to change the item being transferred, i just need the way to figure out selling and giving the in-game item to player who bought the 3rd party item like gamepass from the seller

1 Like

I’m working on it, it will take more time than I expected.

thats alright, id be happy to wait days to get the right answer

1 Like

After hours of working I did it:
The selling thingy.rbxl (58.6 KB)
Make sure to publish the game to Roblox and enable this:


To test this system You can use these example data:
Tool: Tomato
Product ID: 7919545692

thanks, im going to check it
–characters–

this is exactly what im looking for, thank you so much, il be spending more time reading every script to learn more, have a nice day

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.