bobmarley12345

eeeeee

Sep 14th, 2019
155
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local side = "right"
  2.  
  3. print("Carrot's Reactor Controller")
  4. while true do
  5.     input = read()
  6.     --reactor 1
  7.     if input == "1" then
  8.         print("ON or OFF?")
  9.         input2 = read()
  10.         if input2 == "on" then
  11.             print("Turning Reactor 1 ON")
  12.             rs.setBundledOutput(side, colors.white)
  13.         else
  14.             print("Turning Reactor 1 OFF")
  15.             rs.setBundledOutput(side, colors.white)
  16.         end
  17.     end
  18.     --reactor 2
  19.     if input == "2" then
  20.         print("ON or OFF?")
  21.         input2 = read()
  22.         if input2 == "on" then
  23.             print("Turning Reactor 2 ON")
  24.             rs.setBundledOutput(side, colors.orange)
  25.         else
  26.             print("Turning Reactor 2 OFF")
  27.             rs.setBundledOutput(side, colors.orange)
  28.         end
  29.     end
  30.     --reactor 3
  31.     if input == "3" then
  32.         print("ON or OFF?")
  33.         input2 = read()
  34.         if input2 == "on" then
  35.             print("Turning Reactor 3 ON")
  36.         else
  37.             print("Turning Reactor 3 OFF")
  38.         end
  39.     end
  40.     --reactor 4
  41.     if input == "4" then
  42.         print("ON or OFF?")
  43.         input2 = read()
  44.         if input2 == "on" then
  45.             print("Turning Reactor 4 ON")
  46.         else
  47.             print("Turning Reactor 4 OFF")
  48.         end
  49.     end
  50.     --reactor 5
  51.     if input == "5" then
  52.         print("ON or OFF?")
  53.         input2 = read()
  54.         if input2 == "on" then
  55.             print("Turning Reactor 5 ON")
  56.         else
  57.             print("Turning Reactor 5 OFF")
  58.         end
  59.     end
  60. end
RAW Paste Data