so i need help with this statue i have and edited around. some reason whoever made it, made it to where the accessory items get placed only on the head of the statue, how could i change this? i know where the location is that i need to change least in that area"marked it" and i can’t figure out what i need to add there cause i think i would need to figure out how i could make it add accessory type as well so it gets placed on statue correctly. but i have no idea how or where to start
local Loader = {}
function Loader:resetModel(Model)
for _, Object in next, Model:GetChildren() do
if Object:IsA('CharacterMesh') or Object:IsA('Shirt') or Object:IsA('Pants') or Object:IsA('Hat') or Object:IsA('ShirtGraphic') then
Object:Destroy()
end
end
if Model.Head:findFirstChild('Mesh') then
Model.Head.Mesh:Destroy()
end
end
function Loader:updateModel(Model, userId)
local AppModel = game.Players:GetCharacterAppearanceAsync(userId)
Model.Name = game.Players:GetNameFromUserIdAsync(userId)
for _, Object in next, AppModel:GetChildren() do
if Object:IsA('SpecialMesh') or Object:IsA('BlockMesh') or Object:IsA('CylinderMesh') then
Object.Parent = Model.Head
elseif Object:IsA('Decal') then
Model.Head.face.Texture = Object.Texture
elseif Object:IsA('BodyColors') or Object:IsA('CharacterMesh') or Object:IsA('Shirt') or Object:IsA('Pants') or Object:IsA('ShirtGraphic') then
if Model:findFirstChild('Body Colors') then
Model['Body Colors']:Destroy()
end
Object.Parent = Model
elseif Object:IsA('Accessory') then
Object.Parent = Model
--what do i change it to?
elseif Object:IsA('Folder') then
if Object.Name == 'R6' then
Object:GetChildren()[1].Parent = Model
end
else
end
end
if not Model.Head:FindFirstChild('Mesh') then
local m = Instance.new('SpecialMesh', Model.Head)
m.MeshType = Enum.MeshType.Head
m.Scale = Vector3.new(1.25, 1.25, 1.25)
end
end
return Loader