How do you script a way to buy catalog items in-game?
To buy an item in game, do the following:
1 | local market = game:GetService( "MarketplaceService" ) |
2 | local player = game.Players.LocalPlayer -- note, this has to be a LocalScript for LocalPlayer to work. |
3 | local itemId = 00000 |
4 |
5 | market:PromptPurchase(player,itemId) |
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService