Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why doesn't getting the Badge Icon Asset ID work?

I'm editing a badge giver (not free model it is my own) and it is not giving the asset id. It is giving nil and not the asset id. Output:

10:14:23.447 - Image "https://assetdelivery.roblox.com/v1/asset?id=nil" failed to load in "Workspace.mini man.Decal.Texture": Request failed

Code (part of script):

local market = game:GetService("MarketplaceService")
script.Parent.Decal.Texture = "rbxassetid://" .. tostring(market:GetProductInfo(2124545182,0).ImageIconAssetId)

Thanks, b_mni

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.