Advertisement
TechManDylan

CasingMakerPicker

Oct 25th, 2023
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. -- Prompt the user for a choice
  2. print("Select an option:")
  3. print("1. Run ACasingMake.lua")
  4. print("2. Run BCasingMake.lua")
  5.  
  6. -- Wait for user input
  7. local choice = tonumber(io.read())
  8.  
  9. -- Check the user's choice and run the appropriate script
  10. if choice == 1 then
  11.   shell.run("ACasingMake.lua")
  12. elseif choice == 2 then
  13.   shell.run("BCasingMake.lua")
  14. else
  15.   print("Invalid choice. Please enter 1 or 2.")
  16. end
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement