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

How to can i use :isA loop? i really need the answer

guys how can i use :isA in for loops please explain

2 answers

Uhh.. By doing :IsA()...? Loops dont change arguments....

for name,inst in pairs(workspace:GetChildren()) do
	if inst:IsA("BasePart") then --Define className in the IsA to check if an instance "IsA" Classname.
		inst.BrickColor = BrickColor.Random()
	end
end

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