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 9 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 9 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 — 9y
0
In the PromtPurchase method, :PromptPurchase(Player, AssetId, "Tix") xImmortalChaos 565 — 9y
Ad

Answer this question