workspace:GetChildren(i forgot)
How to you get children by classname?
workspace:GetChildren(i forgot)
How to you get children by classname?
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.
i think you mean "change" not "chage" xd
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
I think you are looking for IsA, here is a link to the wiki page. https://developer.roblox.com/en-us/api-reference/function/Instance/IsA