Advertisement
tibetanWolf

sg_dial

Feb 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. component = require("component")
  2. sg = component.getPrimary("stargate")
  3. local term = require("term")
  4.  
  5. while true do
  6.     print("Type any address that you want to dial.")
  7.     add = io.read()
  8.  
  9.     sg.disconnect()
  10.     sg.dial(add)
  11.  
  12.     os.sleep(5)
  13.  
  14.     term.clear()
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement