jumpogpo
(Viper)
June 5, 2021, 12:03pm
#1
So basically I want to make a script that players can customize particle with decal id my main problem is what should I do or use to get image id from decal id?
Crictoli
(cric)
June 5, 2021, 12:33pm
#2
I thought it was impossible until I found this, yes it is possible and is the only way to get an image id from a decal id.
Does inserting the decal and reading its ID not work? This is what we do internally for the Properties widget when an assetId is pasted in. For Lua it would look something like
local InsertService = game:GetService("InsertService")
local MarketplaceService = game:GetService("MarketplaceService")
function getImageIdFromDecal(decalId)
local assetInfo = MarketplaceService:GetProductInfo(decalId, Enum.InfoType.Asset)
assert(assetInfo.IsPublicDomain)
assert(assetInfo.AssetTypeId == Enum.AssetT…