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

Developer Products, Enum.CurrencyType Placement?

Asked by
sgsharp 265 Moderation Voter
10 years ago

I am not quite sure where to put the "Enum.CurrencyType " call in my Developer Product script. I know how to make a developer product work, but I am unsure about the placement of the CurrencyType Enum. Should I place it in the server, or client side script?

If any of you know what I am talking about, please help...

Thanks for your time & help!

1 answer

Log in to vote
1
Answered by
Teeter11 281 Moderation Voter
10 years ago

You could place it in either server side or client side they both work. (assuming you know the guidelines to scripts and localscripts)

The enum goes right after equipifpurchased.

[(http://wiki.roblox.com/index.php?title=PromptProductPurchase_%28Method%29)]


local productId = 1242353 -- your item id type = 0 -- 0 = default 1 = robux 2 = tix (this is for currency type) game.Players.PlayerAdded:connect(function(player) --this would fire on player entry Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId,false,type) end)

Hope it works!

Ad

Answer this question