Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drone = component.proxy(component.list("drone")())
- modem = component.proxy(component.list("modem")())
- leash = component.proxy(component.list("leash")())
- local port = 255
- modem.open(port)
- local pass = tostring(math.random(100,999))
- drone.setStatusText(pass .. " ")
- drone.setLightColor(0xFF0000)
- function logn(pass)
- local e = {computer.pullSignal()}
- if e[1]=="modem_message" and e[6]==pass then
- modem.broadcast(port, "Linked")
- return e[3]
- else
- modem.broadcast(port, "err")
- end
- end
- while not user do
- user = logn(pass)
- end
- drone.setStatusText("Linked")
- drone.setLightColor(0x0099FF)
- while true do
- local e = {computer.pullSignal()}
- if e[1]=="modem_message" and e[3]==user then
- pcall(load(e[6]))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement