Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = require("component")
- os = require("os")
- sg = c.stargate
- rs = c.redstone
- local temp = 2
- local active = true
- while true do
- if #sg.dialedAddress > 2 and active == true then do
- active = false
- temp = #sg.dialedAddress
- print(temp)
- end
- end
- if #sg.dialedAddress > temp then do
- print(#sg.dialedAddress)
- print(temp)
- temp = #sg.dialedAddress
- rs.setOutput({15})
- os.sleep(1)
- rs.setOutput({0})
- end
- elseif #sg.dialedAddress < temp then do
- temp = 2
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement