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

how to you get children by classname?

1 answer

This will get the workspace's children then insert them into a table.

local instances = {}

for _,child in pairs(workspace:GetChildren()) do
	if child:IsA("ClassNameHere") then
		table.insert(instances, child)
	end
end

Remember to chage "ClassNameHere" to the class you are looking for.

1 comment

0

i think you mean "change" not "chage" xd

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