Advertisement
Guest User

final.lua

a guest
Oct 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. while true do
  2.  
  3.  if input == "bacon" then
  4.  
  5.      term.setTextColor(colors.blue)
  6.      
  7.      rs.setOutput("back", true)
  8.      
  9.      sleep(5)
  10.      
  11.      rs.setOutput("back", false)
  12.      
  13.      print("Correct!")
  14.    
  15.      end
  16.      
  17.  if input == "sausage" then
  18.  
  19.      term.setTextColor(colors.red)
  20.      
  21.      rs.setOutput("left", true)
  22.      
  23.      sleep(5)
  24.      
  25.      rs.setOutput("left", false)
  26.      
  27.      print("Correct!")
  28.      
  29.      end
  30.      
  31.  if input == "ham" then
  32.      
  33.     term.setTextColor(colors.green)
  34.      
  35.      rs.setOutput("right", true)
  36.      
  37.      sleep(5)
  38.      
  39.      rs.setOutput("right", true)
  40.      
  41.      print("Correct!")
  42.      
  43.      end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement