for i,v in pairs(Mons) do v.Transparency = 1 end
it said that the humanoid idoenst have transparency how to not get the humanoid
Assuming "Mons" is a table derived from :GetChildren()
for i, v in pairs(Mons) do if v:IsA("BasePart") then v.Transparency = 1 end end
"BasePart" is used since all Parts (Corner, Wedge, Truss, Mesh, Part) are categorized under this Class
:IsA("ClassName")
returns a bool
which when false
, will not run in the above code
if v:IsA('Part') or v:IsA('MeshPart') then