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

How would I go about PrompPurchase'ing an item for tix?

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)

1 answer

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