Advertisement
bobmarley12345

h

Feb 6th, 2021 (edited)
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. function Main()
  2.     local ComputerName = "computer_455"
  3.     local Computer = peripheral.wrap(ComputerName)
  4.     local left = peripheral.wrap("left")
  5.  
  6.     if (Computer == nil) then
  7.         print("Computer is null")
  8.     else
  9.         local methods1 = peripheral.getMethods(ComputerName)
  10.         for key, method in pairs(methods1) do
  11.             print("(PC) Method: '" .. method .. "'")
  12.         end
  13.     end
  14. end
  15.  
  16. Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement