--Institutional white
--Electric blue

function SetDigit(Value)

	if Value == "0" then
		SP.D1.BrickColor = BrickColor.new("Really red")
		SP.D2.BrickColor = BrickColor.new("Really black")
		SP.D3.BrickColor = BrickColor.new("Really red")
		SP.D4.BrickColor = BrickColor.new("Really red")
		SP.D5.BrickColor = BrickColor.new("Really red")
		SP.D6.BrickColor = BrickColor.new("Really red")
		SP.D7.BrickColor = BrickColor.new("Really red")
		return
	end
	if Value == "1" then
		SP.D1.BrickColor = BrickColor.new("Electric blue")
		SP.D2.BrickColor = BrickColor.new("Electric blue")
		SP.D3.BrickColor = BrickColor.new("Electric blue")
		SP.D4.BrickColor = BrickColor.new("Electric blue")
		SP.D5.BrickColor = BrickColor.new("Institutional white")
		SP.D6.BrickColor = BrickColor.new("Electric blue")
		SP.D7.BrickColor = BrickColor.new("Institutional white")
		return
	end
	if Value == "2" then
		SP.D1.BrickColor = BrickColor.new("Institutional white")
		SP.D2.BrickColor = BrickColor.new("Institutional white")
		SP.D3.BrickColor = BrickColor.new("Institutional white")
		SP.D4.BrickColor = BrickColor.new("Electric blue")
		SP.D5.BrickColor = BrickColor.new("Institutional white")
		SP.D6.BrickColor = BrickColor.new("Institutional white")
		SP.D7.BrickColor = BrickColor.new("Electric blue")
		return
	end
	if Value == "3" then
		SP.D1.BrickColor = BrickColor.new("Institutional white")
		SP.D2.BrickColor = BrickColor.new("Institutional white")
		SP.D3.BrickColor = BrickColor.new("Institutional white")
		SP.D4.BrickColor = BrickColor.new("Electric blue")
		SP.D5.BrickColor = BrickColor.new("Institutional white")
		SP.D6.BrickColor = BrickColor.new("Electric blue")
		SP.D7.BrickColor = BrickColor.new("Institutional white")
		return
	end
	if Value == "4" then
		SP.D1.BrickColor = BrickColor.new("Electric blue")
		SP.D2.BrickColor = BrickColor.new("Institutional white")
		SP.D3.BrickColor = BrickColor.new("Electric blue")
		SP.D4.BrickColor = BrickColor.new("Institutional white")
		SP.D5.BrickColor = BrickColor.new("Institutional white")
		SP.D6.BrickColor = BrickColor.new("Electric blue")
		SP.D7.BrickColor = BrickColor.new("Institutional white")
		return
	end
	if Value == "5" then
		SP.D1.BrickColor = BrickColor.new("Institutional white")
		SP.D2.BrickColor = BrickColor.new("Institutional white")
		SP.D3.BrickColor = BrickColor.new("Institutional white")
		SP.D4.BrickColor = BrickColor.new("Institutional white")
		SP.D5.BrickColor = BrickColor.new("Electric blue")
		SP.D6.BrickColor = BrickColor.new("Electric blue")
		SP.D7.BrickColor = BrickColor.new("Institutional white")
		return
	end
	if Value == "6" then
		SP.D1.BrickColor = BrickColor.new("Institutional white")
		SP.D2.BrickColor = BrickColor.new("Institutional white")
		SP.D3.BrickColor = BrickColor.new("Institutional white")
		SP.D4.BrickColor = BrickColor.new("Institutional white")
		SP.D5.BrickColor = BrickColor.new("Electric blue")
		SP.D6.BrickColor = BrickColor.new("Institutional white")
		SP.D7.BrickColor = BrickColor.new("Institutional white")
		return
	end
	if Value == "7" then
		SP.D1.BrickColor = BrickColor.new("Really red")
		SP.D2.BrickColor = BrickColor.new("Really black")
		SP.D3.BrickColor = BrickColor.new("Really black")
		SP.D4.BrickColor = BrickColor.new("Really black")
		SP.D5.BrickColor = BrickColor.new("Really red")
		SP.D6.BrickColor = BrickColor.new("Really black")
		SP.D7.BrickColor = BrickColor.new("Really red")
		return
	end	
	if Value == "8" then
		SP.D1.BrickColor = BrickColor.new("Really red")
		SP.D2.BrickColor = BrickColor.new("Really red")
		SP.D3.BrickColor = BrickColor.new("Really red")
		SP.D4.BrickColor = BrickColor.new("Really red")
		SP.D5.BrickColor = BrickColor.new("Really red")
		SP.D6.BrickColor = BrickColor.new("Really red")
		SP.D7.BrickColor = BrickColor.new("Really red")
		return
	end	
	if Value == "9" then
		SP.D1.BrickColor = BrickColor.new("Really red")
		SP.D2.BrickColor = BrickColor.new("Really red")
		SP.D3.BrickColor = BrickColor.new("Really red")
		SP.D4.BrickColor = BrickColor.new("Really red")
		SP.D5.BrickColor = BrickColor.new("Really red")
		SP.D6.BrickColor = BrickColor.new("Really black")
		SP.D7.BrickColor = BrickColor.new("Really red")
		return
	end	
	if Value == "L" then
		SP.D1.BrickColor = BrickColor.new("Really black")
		SP.D2.BrickColor = BrickColor.new("Really black")
		SP.D3.BrickColor = BrickColor.new("Really red")
		SP.D4.BrickColor = BrickColor.new("Really red")
		SP.D5.BrickColor = BrickColor.new("Really black")
		SP.D6.BrickColor = BrickColor.new("Really red")
		SP.D7.BrickColor = BrickColor.new("Really black")
		return
	end	
	if Value == "E" then
		SP.D1.BrickColor = BrickColor.new("Really red")
		SP.D2.BrickColor = BrickColor.new("Really red")
		SP.D3.BrickColor = BrickColor.new("Really red")
		SP.D4.BrickColor = BrickColor.new("Really red")
		SP.D5.BrickColor = BrickColor.new("Really black")
		SP.D6.BrickColor = BrickColor.new("Really red")
		SP.D7.BrickColor = BrickColor.new("Really black")
		return
	end	

	if Value == "" then
		SP.D1.BrickColor = BrickColor.new("Really black")
		SP.D2.BrickColor = BrickColor.new("Really black")
		SP.D3.BrickColor = BrickColor.new("Really black")
		SP.D4.BrickColor = BrickColor.new("Really black")
		SP.D5.BrickColor = BrickColor.new("Really black")
		SP.D6.BrickColor = BrickColor.new("Really black")
		SP.D7.BrickColor = BrickColor.new("Really black")
		return
	end	
end




SP.Value.Changed:connect(function() SetDigit(SP.Value.Value) end)
