I want to sell an item for tix when a button is clicked, this is what I tried:
local MarketplaceService = game:GetService("MarketplaceService") local Player = game.Players.LocalPlayer local AssetId = 175650271 script.Parent.MouseButton1Down:connect(function() MarketplaceService:PromptPurchase(Player, AssetId, Tix) end)
Go here to learn how to use different types of currency. http://wiki.roblox.com/index.php?title=CurrencyType
Btw if you don't want to do the number version you should be able to do"Tix", or "robux"