supreamcallum45

Monitor_Duplicate.lua

Jan 3rd, 2021
750
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. monitors = {'peripheral.wrap("monitor_0")', 'peripheral.wrap("monitor_1")'}
  2.  
  3. function allMonitors(action)
  4.     for i = 1, #monitors do
  5.         code = table.concat(monitors, action, 1, 1) .. action
  6.         run = load(code)
  7.         run()
  8.         print(code)
  9.     end
  10. end
  11. allMonitors('.write("Hello World")')
  12.  
Advertisement
Add Comment
Please, Sign In to add comment