View difference between Paste ID: ZXEQTjmX and HUsLRGLj
SHOW: | | - or go back to the newest paste.
1
while true do  
2-
 if redstone.getAnalogInput("right")>8 then
2+
 if redstone.getAnalogInput("right")<8 then
3
    redstone.setAnalogOutput("left",15)
4
  else
5
    redstone.setAnalogOutput("left",0)
6
  end
7
  os.sleep(0.1)
8
end