Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitors = {'peripheral.wrap("monitor_0")', 'peripheral.wrap("monitor_1")'}
- function allMonitors(action)
- for i = 1, #monitors do
- code = table.concat(monitors, action, 1, 1) .. action
- run = load(code)
- run()
- print(code)
- end
- end
- allMonitors('.write("Hello World")')
Advertisement
Add Comment
Please, Sign In to add comment