Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 10 years ago

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

Log in to vote
2
Answered by 10 years ago

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"

0
I am still confused, where would I put the enum in my script? SchonATL 15 — 10y
0
In the PromtPurchase method, :PromptPurchase(Player, AssetId, "Tix") xImmortalChaos 565 — 10y
Ad

Answer this question