nathanlol5

Untitled

Dec 31st, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. local mon = peripheral.find("monitor")
  2. mon.setTextScale(1)
  3. mon.clear()
  4. mon.setCursorPos(1, 1)
  5.  
  6. local text = "Line one\nLine two\nLine three"
  7. for line in text:gmatch("[^\n]+") do
  8. mon.write(line)
  9. local x, y = mon.getCursorPos()
  10. mon.setCursorPos(1, y + 1)
  11. end
  12.  
Advertisement
Add Comment
Please, Sign In to add comment