--The following code will print the Name and ClassName of every child of workspace
--(You can run it in command bar to test the module)
--[[
  getAllChildren = require(game:FindFirstChild("GetAllChildren Module",true)) 
  for _,v in pairs(getAllChildren(workspace)) do
    print(string.rep("-",15).."\nName: "..v.Name.."\nClassName: "..v.ClassName)
  end
]]


GetAllChildren = function(obj)
	local Children = {}
	function vGetChildren(trg)
		for _,v in pairs(trg:GetChildren()) do
			table.insert(Children, v)
			vGetChildren(v)
		end
	end
	vGetChildren(obj)
	return Children
end

return GetAllChildren
