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

why is GetProductInfo for Developer Products Id returning asset of decals or nil?

Asked by 9 years ago

I've made a gui to display information about my developer products at the same time it calls prompt purchase. What i have works perfectly with my clothing items and gamepasses, but when i use it for a developer product it either returns nil or it returns a different asset. i've made a print using GetDeveloperProductsAsync to make sure it's returning my products and their info, and it is. everything is there like it should be. but when i use GetProductInfo it's returning decals or nil. Can anyone tell me if i'm doing something wrong?

~~~~~~~~~~~~~~~~~ local buybutton = workspace.Part.Clickdetector local developerproductid = 12345

buybutton.MouseClick:connect(function(player)

local store = script.Parent.store.frame.frame local image = store.Thumbnail local name = store.ItemName local price = store.CurrencyAmount local price2 = store.CurrencyAmount2 local disc = script.Parent.store.frame.description local asset = game:GetService("MarketplaceService"):GetProductInfo(developerproductid) price.Text = asset.PriceInRobux price2.Text = asset.PriceInTickets disc.Text = asset.Description name.Text = asset.Name script.Parent.store.frame.Visible = true image.Image = "http://www.roblox.com/Thumbs/Asset.ashx?width=110&height=110&assetId=" .. developerproductid game:GetService("MarketplaceService"):PromptProductPurchase(player, developerproductid)

end) ~~~~~~~~~~~~~~~~~

Answer this question