View difference between Paste ID: Gzdth0D7 and ta05JkWU
SHOW: | | - or go back to the newest paste.
1
while true do
2
3
signal = redstone.getAnalogInput("right")
4
5
print(signal)
6
7
if signal>14 then 
8
redstone.setOutput("back", true)
9
elseif signal<1 then
10
redstone.setOutput("back", false) 
11
end
12
13
os.sleep(1)
14
end