Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I sell Developer Product in-game with Store Creator?

I have already attempted to sell them in-game with the Store Creator system, but it gives me the ID's of other items, such as shirts and models. I know where to get the ID of the Products, but I can't figure out how to get the correct item to sell it.

If this makes it any different, I would like to make a button for this, instead of the drop down GUI.

Sorry, I am new to Scripting, so I do apologize if this can be considered too broad.

1 answer

This should work.. or not I didn't test it...

Put this code in a LocalScript and the LocalScript in-side the GUI button:

local player = game.Players.LocalPlayer -- the player
local ID = 0 -- the product ID

script.Parent.MouseButton1Click:connect(function()
	Game:GetService("MarketplaceService"):PromptProductPurchase(player, ID)
end)

1 comment

This discussion is preserved as it was. New answers, comments, and votes are closed.