So let's say a player wants to put this decal somewhere in a game: https://www.roblox.com/library/3372561114/--
They input the assetid into a TextBox: 3372561114
I put that assetid on a decal
1 | SomeDecal.Texture = 'rbxassetid' .. 3372561114 |
But that errors, because the id belongs to a decal, not an image. How do I get the id for the image?
EDIT: Here's a list so far of things people think work, but they don't. First, a list of things that don't work, but that people think might work:
1 | InsertService:LoadAsset(assetid) -- Only works for Decals owned by the place creator |
2 | MarketplaceService:GetProductInfo(assetid).AssetId -- ...that's just the id you put into the function. |
3 | HttpService:GetAsync( 'http://www.roblox.com/asset/?id=' ..assetid) -- Roblox changed how they store asset info, so this doesn't work anymore |
4 | assetid = assetid - 1 -- Again, Roblox changed how they store assets & assign ids, so this doesn't work |
5 | -- This web API: https://devforum.roblox.com/t/get-imageid-from-decalid-in-game/205561 -- Doesn't work since it relies on the old method of asset storage |
6 | -- Web API from the F3X Building Tools also relies on the old method and doesn't work for new decals |
Try going to the website, go to the search bar, put -1 on the decal id until you get a image. Or you could just get Roblox+.