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

Red = script.Parent.Red.Lamp
Yellow = script.Parent.Yellow.Lamp
Green = script.Parent.Green.Lamp
DRed = script.Parent.Red.DynamicLight
DYellow = script.Parent.Yellow.DynamicLight
DGreen = script.Parent.Green.DynamicLight
	if Turn.Value == 0 then
		Green.Enabled = false
		Yellow.Enabled = false
		Red.Enabled = false
		DGreen.Enabled = false
		DYellow.Enabled = false
		DRed.Enabled = false
	elseif Turn.Value == 1 then
		Green.Enabled = true
		Yellow.Enabled = false
		Red.Enabled = false
		DGreen.Enabled = true
		DYellow.Enabled = false
		DRed.Enabled = false
	elseif Turn.Value == 2 then
		Green.Enabled = false
		Yellow.Enabled = true
		Red.Enabled = false
		DGreen.Enabled = false
		DYellow.Enabled = true
		DRed.Enabled = false
	elseif Signal.Value == 3 then
		Green.Enabled = false
		Yellow.Enabled = false
		Red.Enabled = true
		DGreen.Enabled = false
		DYellow.Enabled = false
		DRed.Enabled = true
	elseif Turn.Value == 3 then
		while true do
		Red.Enabled = true
		Green.Enabled = false
		Yellow.Enabled = false
		DRed.Enabled = true
		DGreen.Enabled = false
		DYellow.Enabled = false
		wait(.5)
		Red.Enabled = false
		DRed.Enabled = false
		wait(.5)
		if Turn == 2 then break end
		if Turn == 1 then break end
		if Turn == 0 then break end
		if Signal ~= 3 then break end 
		if Signal ~= 0 then break end 
		end
	end
	wait()
end


	
	
