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)

2 comments
I am still confused, where would I put the enum in my script?
In the PromtPurchase method, :PromptPurchase(Player, AssetId, "Tix")