Guest User

door

a guest
Jan 2nd, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. local monitor = peripheral.wrap("front")
  2. local radar = peripheral.wrap("top")
  3. while true do
  4. monitor.clear()
  5. monitor.setCursorPos(1, 1)
  6. local player = radar.getPlayers()
  7. for i,v in pairs(player) do
  8.   if type(v) == "string" then
  9.     monitor.write(v)
  10.   elseif type(v) == "table" then
  11.     for k,w in pairs(v) do
  12.       monitor.write(w.." ")
  13.       rs.setOutput("bottom", true)
  14.       local tableoutput = textutils.serialize(player)
  15.       local file = fs.open("Table", "w")
  16.       file.write(tableoutput)
  17.       file.close()
  18.     end
  19.   end
  20. end
  21. sleep(1)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment