Many games (including my own) utilize ID importers to allow players to customize their characters. Simply copy and paste a catalog ID for classic clothes or non-layered items and viola, the character is wearing them.
However, what I’ve really wanted to see and haven’t yet is an ID importer compatible with layered clothing.
I know a lot of big avatar customization games already have layered clothing support, but the freely-available importers and plugins still don’t support layered clothing.
Is there any way at all that a clothing ID importer can import layered clothing?
Right now, I’m using ewjadestinks’s editor, and here is its primary code:
if not workspace:FindFirstChild("AvatarEvent") then local event = Instance.new("RemoteEvent") event.Name = "AvatarEvent" event.Parent = workspace end local event = workspace.AvatarEvent local insertS = game:GetService("InsertService") event.OnServerEvent:Connect(function(player, id) local number = tonumber(id) if not number then return end local asset local char = player.Character local success = pcall(function() asset = insertS:LoadAsset(number) end) if not success then return end local child = asset:GetChildren() for _,v in pairs(child) do if v:IsA("Accessory") then char.Humanoid:AddAccessory(v) elseif v:IsA("Shirt") then local templ = v.ShirtTemplate char.Shirt.ShirtTemplate = templ elseif v:IsA("Pants") then local templ = v.PantsTemplate char.Pants.PantsTemplate = templ end end asset:Destroy() end)