-- BouyertheDestroyer
-- edited by Frozzie


function Paint(Brick)
	--local Constant = (Brick.BrickColor.r + Brick.BrickColor.b + Brick.BrickColor.g)
	Brick.Color = Color3.new(1-Brick.BrickColor.r, 1-Brick.BrickColor.g, 1-Brick.BrickColor.b)
end

function Search(Object)
	coroutine.resume(coroutine.create(Paint), Object)
	local Children = Object:GetChildren()
	for X = 1, # Children do
		Search(Children[X])
	end
end

function added(child)
	Search(child)
end

workspace.ChildAdded:connect(added)
Search(game.Workspace)
light = game.Lighting
if light:GetMinutesAfterMidnight() < 6 and light:GetMinutesAfterMidnight() > 18 then
	script.White:Clone().Parent = light
else
	script.Black:Clone().Parent = light
end
