Advertisement
deadinside1222

CC: GhoulMonitor

May 12th, 2024 (edited)
819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local monitor = peripheral.find("monitor")
  2.  
  3. if monitor then
  4.    
  5.     monitor.clear()
  6.     monitor.setCursorPos(1,1)
  7.  
  8.    
  9.     local i = 1000
  10.  
  11.    
  12.     while true do
  13.         monitor.clear()    
  14.         monitor.write(tostring(i))
  15.         i = i - 7    
  16.         if i < 0 then
  17.             i = 1000
  18.         end
  19.        
  20.        
  21.         sleep(0.5)
  22.     end
  23. else
  24.     print("ERROR")
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement