-- -- -- -- -- -- --
--DIRECTION SCROLL--
-- -- -- -- -- -- --


while wait() do
	if Lift:WaitForChild("Mode").Value == "auto" then
		if Lift.Car.Sensor:FindFirstChild("Overloaded") == true then
			SetDisplayDOT(1,"OL")
		else
		    if Lift:WaitForChild("MotorMode").Value ~= "idle" then
			    if Lift:WaitForChild("Direction").Value == 1 then
					for S=0,7 do
						if Lift:WaitForChild("MotorMode").Value == "idle" then break end
						SetDisplayDOT(1,"U"..S)
						wait(0.5)
					end
			    elseif Lift:WaitForChild("Direction").Value == -1 then
					for S=0,7 do
						if Lift:WaitForChild("MotorMode").Value == "idle" then break end
						SetDisplayDOT(1,"D"..S)
						wait(0.5)
					end
				else
					SetDisplayDOT(1,"NIL")
			    end
			else
			    if Lift:WaitForChild("Direction").Value == 1 then
					SetDisplayDOT(1,"U".."0")
			    elseif Lift:WaitForChild("Direction").Value == -1 then
					SetDisplayDOT(1,"D".."0")
				else
					SetDisplayDOT(1,"NIL")
			    end
			end
		end
	elseif Lift:WaitForChild("Mode").Value == "fire" then
		SetDisplayDOT(1,"FR")
	elseif Lift:WaitForChild("Mode").Value == "manual" then
		SetDisplayDOT(1,"PR")
	elseif Lift:WaitForChild("Mode").Value == "priority" then
		SetDisplayDOT(1,"PR")
	end
end
