while wait()do if(Lift:WaitForChild("\077\111\100\101")).Value=="\097\117\116\111"then if Lift.Car.Sensor:FindFirstChild("\079\118\101\114\108\111\097\100\101\100")==true then SetDisplayDOT(1,"\079\076")else if(Lift:WaitForChild("\077\111\116\111\114\077\111\100\101")).Value~="\105\100\108\101"then if(Lift:WaitForChild("\068\105\114\101\099\116\105\111\110")).Value==1 then for o=0,7,1 do if(Lift:WaitForChild("\077\111\116\111\114\077\111\100\101")).Value=="\105\100\108\101"then break end SetDisplayDOT(1,"\085"..o)wait(.5)end elseif(Lift:WaitForChild("\068\105\114\101\099\116\105\111\110")).Value==-1 then for o=0,7,1 do if(Lift:WaitForChild("\077\111\116\111\114\077\111\100\101")).Value=="\105\100\108\101"then break end SetDisplayDOT(1,"\068"..o)wait(.5)end else SetDisplayDOT(1,"\078\073\076")end else if(Lift:WaitForChild("\068\105\114\101\099\116\105\111\110")).Value==1 then SetDisplayDOT(1,"\085\048")elseif(Lift:WaitForChild("\068\105\114\101\099\116\105\111\110")).Value==-1 then SetDisplayDOT(1,"\068\048")else SetDisplayDOT(1,"\078\073\076")end end end elseif(Lift:WaitForChild("\077\111\100\101")).Value=="\102\105\114\101"then SetDisplayDOT(1,"\070\082")elseif(Lift:WaitForChild("\077\111\100\101")).Value=="\109\097\110\117\097\108"then SetDisplayDOT(1,"\080\082")elseif(Lift:WaitForChild("\077\111\100\101")).Value=="\112\114\105\111\114\105\116\121"then SetDisplayDOT(1,"\080\082")end end


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
