How would I go about making a gui to sell things directly from your inventory?

i’m extremely new to scripting and i wasn’t able to find a good basis to use.


the “sell” button activates a confirmation prompt when clicked. the axolotls will sell for a specific price based on rarity.

petModule.selling_prices = {
[“Legendary”] = {
chroma = 500;
bioluminescent = 500;
shadow = 500;
};

["Rare"] = {
	jadeaxolotl = 100;
	albino = 100;
	bioluminescent = 100;
	hitbox = 100;
};

["Uncommon"] = {
	darkaxolotl = 65;
	whiteaxolotl = 65;
	bnw = 65;

};

["Common"] = {
	phase = 55;
	axolotl = 55;
	darkpink = 55;
};

}

i just need help connecting this to the prompt.

I’m not entirely sure what you mean, your title “How would I go about making a gui to sell things directly from your inventory?” and your contents are asking for help about two different things.

Do you need help cloning the pet or do you need help with MarketPlaceService?

I guess I phrased it badly
I want to connect the prompt to leaderstats, in which you sell the axolotls for in-game currency, except with a gui frame instead of stepping or clicking on something.