Advertisement
Guest User

startup

a guest
Jun 13th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1.  
  2. fnsh = false
  3. sp = peripheral.wrap("back")
  4.  
  5. while true do
  6. if rs.getInput("top") == true and fnsh == false then
  7.   sp.speak("The next station is: . . Milcastle")
  8.   fnsh = true
  9. elseif rs.getInput("top") == false and fnsh == true then
  10.   sleep(5)
  11.   fnsh = false
  12. end
  13. sleep(.01)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement