Here is my script:
elseif msg:lower():sub(1, 9) == "invisible" then
for i,v in pairs(character:GetChildren()) do
if v:IsA("BasePart")or v:IsA("Decal") then
v.Transparency = 1
local face = v:FindFirstChild("face")
if face then
face.Transparency = 1
end
elseif v:IsA("Accessory") or v:IsA("Accoutrement") then
local handle = v:FindFirstChild("Handle")
if handle then
handle.Transparency = 1
end
end
end
end
I just think there would be an easier way. I tried just checking if v was a basepart but then the face and hair were visible. I hope you guys can help. Thanks!

1 comment
I would recommend looking for meshparts too. r15 uses meshparts