for m,t in pairs(model:GetChildren())do if string.sub(t.Name,1,1)=="\097"then table.insert(a,1,t)end end for m,t in pairs(model:GetChildren())do if string.sub(t.Name,1,1)=="\098"then table.insert(b,1,t)end end function lightOn(m)for m,t in pairs(m)do if t:FindFirstChild("\083\117\114\102\097\099\101\076\105\103\104\116")then t.SurfaceLight.Enabled=true end if t:FindFirstChild("\083\112\111\116\076\105\103\104\116")then t.SpotLight.Enabled=true t.Material="\078\101\111\110"end end end function lightOff(m)for m,t in pairs(m)do if t:FindFirstChild("\083\117\114\102\097\099\101\076\105\103\104\116")then t.SurfaceLight.Enabled=false end if t:FindFirstChild("\083\112\111\116\076\105\103\104\116")then t.SpotLight.Enabled=false t.Material="\083\109\111\111\116\104\080\108\097\115\116\105\099"end end end while true do lightOn(a)wait(.25)lightOff(a)wait(.25)lightOn(a)wait(.25)lightOff(a)wait(.25)lightOn(b)wait(.25)lightOff(b)wait(.25)lightOn(b)wait(.25)lightOff(b)wait(.25)end

for i,part in pairs(model:GetChildren()) do
	if string.sub(part.Name, 1,1) == "a" then
		table.insert(a, 1, part)
	end
end
for i,part in pairs(model:GetChildren()) do
	if string.sub(part.Name, 1,1) == "b" then
		table.insert(b, 1, part)
	end
end

function lightOn(T)
	for i, part in pairs (T) do
		if part:FindFirstChild("SurfaceLight") then
			part.SurfaceLight.Enabled = true
		end
	    if part:FindFirstChild("SpotLight") then
			part.SpotLight.Enabled = true
			part.Material = "Neon"
		end
	end
end

function lightOff(T)
	for i, part in pairs (T) do
		if part:FindFirstChild("SurfaceLight") then
			part.SurfaceLight.Enabled = false
		end
	    if part:FindFirstChild("SpotLight") then
			part.SpotLight.Enabled = false
			part.Material = "SmoothPlastic"
		end
	end
end

while true do

	lightOn(a)
	wait(0.25)

	lightOff(a)
	wait(0.25)

	lightOn(a)
	wait(0.25)

	lightOff(a)
	wait(0.25)
	
	lightOn(b)
	wait(0.25)

	lightOff(b)
	wait(0.25)
	
	lightOn(b)
	wait(0.25)

	lightOff(b)
	wait(0.25)
	
end

