Advertisement
Guest User

Count.lua

a guest
Apr 22nd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. function AB()
  2. RS = rs.getInput("right")
  3. if RS == true then print("Launch Aborted") Countdown() end
  4. sleep(1)
  5. end
  6.  
  7. function Countdown()
  8.     while true do
  9.         sleep(1)
  10.         RSC = rs.getInput("left")
  11.  
  12.         if RSC == true then AB() print(10) sleep(1) end
  13.         if RSC == true then AB() print(9) sleep(1) end
  14.         if RSC == true then AB() print(8) sleep(1) end
  15.         if RSC == true then AB() print(7) sleep(1) end
  16.         if RSC == true then AB() print(6) sleep(1) end
  17.         if RSC == true then AB() print(5) sleep(1) end
  18.         if RSC == true then AB() print(4) sleep(1) end
  19.         if RSC == true then AB() print(3) sleep(1) end
  20.         if RSC == true then AB() print(2) sleep(1) end
  21.         if RSC == true then AB() print(1) sleep(1) end
  22.  
  23.     end
  24. end
  25.  
  26. Countdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement