-- Quick scan:
-- 	This will just give you a brick-count and print it to your output
--	Go in Solo or Online mode to get a dynamic GUI counter

local parts = {}
function scan(p)
	for _,v in pairs(p:GetChildren()) do
		if (v:IsA("BasePart")) then
			table.insert(parts,v)
		end
		scan(v)
	end
end
scan(game.Workspace)
print(#parts .. (#parts == 1 and " brick " or " bricks ") .. "counted")
parts = {}
