Just as the title says, I want to know how to convert a Marketplace Hair ID to a MeshId… I’ve searched on the devforum and couldn’t really find anything related to this.
If perhaps you don’t know what I mean by “Marketplace Hair ID”, I meant this:
Just as the title says, I want to know how to convert a Marketplace Hair ID to a MeshId… I’ve searched on the devforum and couldn’t really find anything related to this.
If perhaps you don’t know what I mean by “Marketplace Hair ID”, I meant this:
You can use InsertService to get the model given an asset ID and then look for a SpecialMesh instance inside of it.
Example:
local insertService = game:GetService("InsertService")
local assetId = 63690008
local model = insertService:LoadAsset(assetId)
for _,d in ipairs(model:GetDescendants()) do
if d:IsA("SpecialMesh") then
print(d.MeshId)
break
end
end
model:Destroy()
Oddly enough, I didn’t really know that existed
But thanks nonetheless!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.