Advertisement
ScoutMaester

Untitled

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