--Main Control------------------------------------------------------------------------

Walk = script.Parent.Walk.Lamp
DontWalk = script.Parent.DontWalk.Lamp
DWalk = script.Parent.Walk.DynamicLight
DDontWalk = script.Parent.DontWalk.DynamicLight
while true do
	wait()
	if Signal.Value == 0 then
	Walk.Enabled = false
	DontWalk.Enabled = false
	DWalk.Enabled = false
	DDontWalk.Enabled = false
	elseif Signal.Value == 1 then
	Walk.Enabled = true
	DontWalk.Enabled = false	
	DWalk.Enabled = true
	DDontWalk.Enabled = false
	elseif Signal.Value == 2 then
		while true do
		Walk.Enabled = false
		DontWalk.Enabled = true
		DWalk.Enabled = false
		DDontWalk.Enabled = true
		wait(.5)
		DontWalk.Enabled = false
		DDontWalk.Enabled = false
		wait(.5)
		if Signal.Value == 0 then break end
		if Signal.Value == 1 then break end	
		if Signal.Value == 3 then break end
		end
	elseif Signal.Value == 3 then
	Walk.Enabled = false
	DontWalk.Enabled = true
	DWalk.Enabled = false
	DDontWalk.Enabled = true
	end
	end
