Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

pcman312

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by pcman312

  1. Nevermind, I figured it out. For anyone that may find this forum, this is what I did: local robot = require("robot") for i=0,10 do robot.forward() end for i=0,10 do robot.back() end
  2. I'm attempting to write my first programs for a robot, but I'm running into a wall (figuratively). I wrote the following test script and saved it on a floppy: for i=0,10 do robot.forward() end for i=0,10 do robot.back() end The floppy is mounted in the robot, but whenever I attempt to execute it, I receive this error: /mnt/fa8/robot_sandbox.lua:2: attempt to index global 'robot' (a nil value) If I run it manually after running lua directly, it runs fine. What am I missing? Do I need an import of some sort in the script?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.