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

Help getting developer product info?

Asked by
Mr1Vgy 30
9 years ago

I have a developer product and I want to get the product's price in robux and set a TextButton's text to the robux price, bit it doesn't work.

ms = game:GetService("MarketplaceService")
id = script.Parent.id.Value
amtCash = script.Parent.amtCash.Value
info = ms:GetProductInfo(id, Enum.InfoType.Product)
script.Parent.buy.Text = "Buy "..amtCash.." for "..info[1]

Answer this question