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.