Advertisement
Virgilcore

SGUNILIGHTBALL

Sep 11th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. c = require("component")
  2. os = require("os")
  3. sg = c.stargate
  4. rs = c.redstone
  5. local temp = 2
  6. local active = true
  7.  
  8. while true do
  9. if #sg.dialedAddress > 2 and active == true then do
  10. active = false
  11. temp = #sg.dialedAddress
  12. print(temp)
  13. end
  14. end
  15. if #sg.dialedAddress > temp then do
  16. print(#sg.dialedAddress)
  17. print(temp)
  18. temp = #sg.dialedAddress
  19. rs.setOutput({15})
  20. os.sleep(1)
  21. rs.setOutput({0})
  22. end
  23. elseif #sg.dialedAddress < temp then do
  24. temp = 2
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement