How do i get the MeshID & TextureID from an accessory?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    finding the mesh and texture IDs from accessories on the site
    like item 15771355434 (Feather knight helmet), how do i get it’s meshid

  2. What is the issue? Include screenshots / videos if possible!
    i just dont know how to

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    tried reading on the docs and saw GetProductInfo but that looks like its better for UI than anything else, and i tried reading the devforum but couldnt find anything

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
i dont know much about website and studio interactions and functions that can grab data from between them, so if im missing a super obvious solution, im sorry

Hello.

Writing the code here, in the DevForum, so it may not be accurate.

local accessory = workspace.Accessory -- Your path to the accessory

local handle = accessory:WaitForChild("Handle") -- If the accessory is approved, it has to have a handle

if handle then
local mesh = handle:FindFirstChildOfClass("SpecialMesh") or handle:FindFirstChildOfClass("FileMesh")

if mesh then
local meshId = mesh.MeshId
local textureId = mesh.TextureId
end

end

Just tested this, it works :slight_smile:.

im getting accessories from scripts (specifically a local script) using the marketplaceservice, and i dont know how to get a mesh of a specific accessory ID through a script

Could you maybe send me your script?

local marketplaceservice = game:GetService("MarketplaceService")

local id = 15000000000

local GUI = script.Parent

local tabs = GUI.Tabs
local editor = GUI.Editor
local searchbar = GUI.SearchBar

local currentsearch = searchbar.Text

function createItemDisplay(id)
	local ItemFrame = game.ReplicatedStorage.ItemFrame:Clone()
	local Name = ItemFrame.Name
	local Model = ItemFrame.Item.Model
	
	local asset = marketplaceservice:GetProductInfo(id)
	Name.Text = asset.Name
	--where do i get the mesh and texture IDs if :GetProductInfo doesnt give me em???
end

if currentsearch == nil then
	
	else
	
end

For now, I believe GetProductInfo() does not give you the mesh info, but if you still believe there is a hope you could search this a bit more on the DevForum, and I hope you find a solution to this.

Here is all the properties to this, if I am missing it, you will be able to detect it.

{
                    ["AssetId"] = 15721926642,
                    ["AssetTypeId"] = 1,
                    ["ContentRatingTypeId"] = 0,
                    ["Created"] = "2023-12-23T10:34:15.977Z",
                    ["Creator"] =  ▶ {...},
                    ["Description"] = "Decal Image",
                    ["IconImageAssetId"] = 0,
                    ["IsForSale"] = false,
                    ["IsLimited"] = false,
                    ["IsLimitedUnique"] = false,
                    ["IsNew"] = false,
                    ["IsPublicDomain"] = false,
                    ["MinimumMembershipLevel"] = 0,
                    ["Name"] = "Images/Coin Outline 128",
                    ["ProductId"] = 0,
                    ["Sales"] = 0,
                    ["TargetId"] = 0,
                    ["Updated"] = "2023-12-23T10:34:15.983Z"
                 }  -  Client - LocalScript:19

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.