How do you script a way to buy catalog items in-game?
✓ ANSWER ACCEPTED
How do you script a way to buy catalog items in-game?
1 answer
✓ Accepted answer
To buy an item in game, do the following:
local market = game:GetService("MarketplaceService")
local player = game.Players.LocalPlayer -- note, this has to be a LocalScript for LocalPlayer to work.
local itemId = 00000
market:PromptPurchase(player,itemId)
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService
This discussion is preserved as it was. New answers, comments, and votes are closed.
