Hello developers I’m having a problem with the script where it set character transparency to 0 and deleted the accessories or shirt or pants. But it did nothing except i add a part inside the part named “1”. That part is the only part that sets transparency to 0.
script:
for _,delete in pairs(player.Character:GetChildren()) do
if delete:IsA('Accessory') or delete:IsA('Shirt') or delete:IsA('Pants') then
delete:Destroy()
print('delete accessory '..delete.Name)
elseif delete:IsA('MeshPart') or delete:IsA('Part') then
delete.Transparency = 1
print('invisible part '..delete.Name)
end
end
No Errors?: