How to find the mesh/texture of a accessory inside a script

This is for anybody that doesnt know how to get the mesh or texture ID if any accessory inside of a roblox script in game (Not in the command bar)

  1. Insert a server script where ever you want.
  2. copy/paste this and modify it
local mesh = game:GetService("InsertService"):LoadAsset(18148771343) -- Change to your ID

local meshID = mesh:FindFirstChildOfClass("Accessory").Handle.SpecialMesh.MeshId 
local textureID = mesh:FindFirstChildOfClass("Accessory").Handle.SpecialMesh.TextureId 

if meshID and textureID then
	print(meshID) -- Optional
	print(textureID) -- Optional
	mesh:Destroy()
end
1 Like