Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = shell.parse(...)
- local direction = args [1]
- local amount = tonumber(args[2])
- function motor (n,m)
- g=component.carriage
- for i=0, m, 1 do
- g.move(n)
- end
- end
- motor(direction, amount)
Advertisement
Add Comment
Please, Sign In to add comment