while true do local running = false if redstone.getInput("front") == true then local example = http.post("https://api.pinocc.io/v1/1/1/command", 'command=command.scout(2, "rover.forward")&token={{api token}}') running = true end if redstone.getInput("right") == true then local example = http.post("https://api.pinocc.io/v1/1/1/command", 'command=command.scout(2, "rover.right")&token={{api token}}') running = true end if redstone.getInput("left") == true then local example = http.post("https://api.pinocc.io/v1/1/1/command", 'command=command.scout(2, "rover.left")&token={{api token}}') running = true end if redstone.getInput("back") == true then local example = http.post("https://api.pinocc.io/v1/1/1/command", 'command=command.scout(2, "rover.backward")&token={{api token}}') running = true end if running == false then local example = http.post("https://api.pinocc.io/v1/1/1/command", 'command=command.scout(2, "rover.stop")&token={{api token}}') end end