You can write your topic however you want, but you need to answer these questions:
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
What is the issue? Include screenshots / videos if possible!
i just dont know how to
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
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
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
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.