Advertisement
ScoutMaester

Untitled

Sep 5th, 2023
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. repeat
  2. print "How far would you like me to travel?"
  3. l = read()
  4. print "How wide would you like the tunnel?"
  5. w = read()
  6. print "How tall would you like the tunnel?"
  7. h = read()
  8.  
  9. -- Confirming input
  10. print ("Im going forward " ..l " blocks!")
  11. print ("Im going to make the tunnel " ..w " blocks wide!")
  12. print ("Im going to make the tunnel " ..h " blocks tall!")
  13. print "Confirm? (Y/N)"
  14. answer = read()
  15. if answer == "Y" or "y" then
  16. print "Confirmed! Starting Tunnel!"
  17. else
  18. print "Please renter values..."
  19. end
  20. until answer == "Y" or "y"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement