Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local side = "right"
- ps = "A"
- local tid = 5
- local laser = rs.getInput("left")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write(" Skriv A og trykk ENTER: ")
- if input == ps
- then term.clear()
- term.setCursorPos(1,1)
- print("Venter på laser")
- if laser == true do
- rs.setOutput(side,true)
- sleep(tid)
- rs.setOutput(side,false)
- else
- print("Skjønner ikke")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement