I'm trying to make a space game where every body part of the player except the head is an astronaut suit, and I'm using starter character with a blank head to do so, the script works except the hat the player has on goes somewhere else, can you tell me why? (This is a LocalScript)
for _,v in pairs(game:GetService("Players"):GetCharacterAppearanceAsync(88130316):GetChildren()) do
if (v:IsA("Accessory")) then
v.Parent = script.Parent
end
if (v:IsA("ShirtGraphic")) then
v.Parent = script.Parent
end
if (v.Name == "R6") then
v:GetChildren()[1].Parent = script.Parent
v.Parent = nil
end
if (v:IsA("BodyColors")) then
v.Parent = script.Parent
end
if (v.Name == "face") then
if (script.Parent.Head:FindFirstChild("face")) then
script.Parent.Head.face.Parent = nil
end
v.Parent = script.Parent.Head
end
if (v:IsA("Shirt")) then
v.Parent = script.Parent
end
if (v:IsA("Pants")) then
v.Parent = script.Parent
end
if (v:IsA("SpecialMesh")) then
if (script.Parent.Head:FindFirstChild("Mesh")) then
script.Parent.Head.Mesh.Parent = nil
end
v.Parent = script.Parent.Head
end
end

1 comment
reee