Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- function send(cmd)
- rednet.broadcast(cmd, "zach")
- end
- while true do
- e, key = os.pullEvent("key")
- if key == keys.w then
- send("f")
- elseif key == keys.s then
- send("b")
- elseif key == keys.a then
- send("l")
- elseif key == keys.d then
- send("r")
- elseif key == keys.q then
- send("d")
- elseif key == keys.e then
- send("u")
- elseif key == keys.f then
- send("x")
- elseif key == keys.r then
- send("du")
- elseif key == keys.c then
- send("dd")
- elseif key == keys.g then
- send("p")
- elseif key == keys.t then
- send("pd")
- elseif key == keys.v then
- send("pu")
- elseif key == keys.escape then
- send("exit")
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement