for s,n in pairs(model:GetChildren())do if string.sub(n.Name,1,1)=="\101"then table.insert(e,1,n)end end for s,e in pairs(model:GetChildren())do if string.sub(e.Name,1,1)=="\102"then table.insert(f,1,e)end end function lightOn(s)for s,e in pairs(s)do if e:FindFirstChild("\079\110")then e.On.Value=true end end end function lightOff(s)for s,e in pairs(s)do if e:FindFirstChild("\079\110")then e.On.Value=false end end end while true do lightOn(e)wait(.25)lightOff(e)wait(.25)lightOn(f)wait(.25)lightOff(f)wait(.25)end
--create tables:
for i, part in pairs(model:GetChildren()) do
	if string.sub(part.Name, 1, 1) == "e" then
		table.insert(e, 1, part)
	end
end
for i, part in pairs(model:GetChildren()) do
	if string.sub(part.Name, 1, 1) == "f" then
		table.insert(f, 1, part)
	end
end

function lightOn(T)
	for i, part in pairs(T) do
		if part:FindFirstChild("On") then
			part.On.Value = true
		end
	end
end

function lightOff(T)
	for i, part in pairs(T) do
		if part:FindFirstChild("On") then
			part.On.Value = false
		end
	end
end

while true do
	lightOn(e)
	wait(0.25)

	lightOff(e)
	wait(0.25)

	lightOn(f)
	wait(0.25)

	lightOff(f)
	wait(0.25)
end
