Advertisement
poboivin

TurnRight

Oct 3rd, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. tArgs{...}
  2. times = tArgs[1]
  3. print("turning right")
  4.  
  5. for i=1,times do
  6. turtle.turnRight()
  7. currentFacing = currentFacing +1
  8. if currentFacing == 4 then
  9. currentFacing = 0
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement