omgitspenguins
Active Member
Veteran
OmgStillAPenguin
Posts: 53
ROBLOX Username: penguins113311
|
Post by omgitspenguins on Apr 29, 2017 6:11:30 GMT
local plr = game:GetService('Players').LocalPlayer
local char = plr.CharacterAdded:wait()
local display = workspace.DisplayChar
for _,v in pairs(char:GetChildren()) do
print('looping')
if v:IsA("Pants") then
print(v)
local Pants = v:Clone()
Pants.Parent = display
elseif v:IsA('Shirt') then
print(v)
local Shirt = v:Clone()
Shirt.Parent = display
elseif v:IsA('ShirtGraphic') then
print(v)
local ShirtGraphic = v:Clone()
ShirtGraphic.Parent = display
if v.Name == 'Head' then
print(v)
if v:IsA('SurfaceGui') then
print(v)
local Face = v:Clone()
Face.Parent = display.Head
if v:IsA('SpecialMesh') then
print(v)
if not display.Head:FindFirstChild("Mesh") then
print(v)
local Mesh = v:Clone()
Mesh.Parent = display.Head
end
end
end
end
end
end
IDK how to fix, It's broken from Pants onwards .-. Also someone post a thread I don't like this streak
|
|
|
Post by Josh on Apr 29, 2017 6:45:56 GMT
Please take a look at the recommended format guide here if you would like your problem to be resolved as quick as possible. What is in the output? I noticed that you didn't end the first if statement before the second, so v.Name can never be "Head" as it is not a ShirtGraphic.
|
|