i’m not very familiar with using assets that i dont own, so i waas trying to make a billboard where people can put up images they found from the creator store with the catalog asset id in this format
https://create.roblox.com/store/asset/1234567890/image
taking the 1234567890 and entering it into a textbox.
however, unlike setting it in the properties tab, when you set it with a script, it seems not to autocorrect to the actual image id. leaving an empty image.
how would i find the usable image id?
If i understood correctly, you would need to add a string to the id, like this:
local id = 00000
imageLabel.Image = "rbxassetid://"..tostring(id)
ignore my previous response i was confused about why you sent a solidmodel
if its a decal you can insert it into your game to get the imageid but that only works for items you own / public
for decals you can also use MarketplaceService:GetProductInfoAsync() and it will return IconImageAssetId but im not sure how well this works anymore because i just tested it and it returned 0
for assetids, you can use rbxthumb though it will always be 1:1 and it isnt actually the imageid but it can still be used in-game
rbxthumb://type=Asset&id=93828537434386&w=150&h=150
To get the converted ID like the one studio gives you after copypasting an image you can use LoadAsset:
local function convertID(id: number): string
return game.InsertService:LoadAsset(id).Decal.Texture
end
This receives the decal ID you find on the website as input and gives you the converted id as output, like studio does automatically during edit mode.
However, the thumbnail endpoint solution provided above also works if you only care about displaying the image.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.