Hello, I am trying get the icon of an asset which is in the clothing shop, example : The err… face. I need its icon id in roblox studio. So basically when I give the script the asset id of an item it returns the icon id of the asset
rbxthumb://type=Asset&w=150h=150&id=0 --Change 0 to the asset's ID.
1 Like
It didn’t work. char thing
How did you try to use it?
ImageLabel.Image = "rbxthumb://..." --correct use
To get a thumbnail of the asset you can do something like this within a script:
local imageLabel = script.Parent -- Assuming that the script is inside an ImageLabel.
local assetId = 0 -- AssetId of the asset you want to display.
imageLabel.Image = "rbxthumb://type=Asset&id=" .. assetId .. "&w=420&h=420"
For more information on rbxthumb you can check out this post by TheGamer101.
Hope this helped!
3 Likes