Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write("Please select a direction")
- write("1. North")
- write("2. South")
- write("3. East")
- write("4. West")
- write("5. Up")
- write("6. Down")
- input = read()
- col = 0
- if input == 1 then
- col = colours.orange
- else if input == 2 then
- col = colours.yellow
- else if input == 3 then
- col = colours.magenta
- else if input == 4 then
- col = colours.lightBlue
- else if input == 5 then
- col = colours.white
- else if input == 6 then
- col = colours.lime
- end
- write("How far?")
- distance = read()
- for i=1,tonumber(distance) do
- rs.setBundledOutput("back", col)
- sleep(0.5)
- rs.setBundledOutput("back", 0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement