Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to not make get children not get a humanoid?

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

1 comment

0

local Mons = game.Workspace.Monst:GetChildren()

2 answers

✓ Accepted answer

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

1 comment

0

why am i stressing my self lmao

This discussion is preserved as it was. New answers, comments, and votes are closed.