Advertisement
ComputerComa

Untitled

Nov 29th, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | Source Code | 0 0
  1. require("./randomColor")
  2.  
  3. print("Welcome to my lovely little island")
  4. print("I hope you enjoy your stay")
  5. print("Maintain a safe distance from the edge of the island")
  6. print("You wouldn't want to fall off!")
  7. print("Thank you for visiting!")
  8. print("-- ComputerComa")
  9. print("Would you like to know the color of the day?")
  10. print("Type 'yes' or 'no'")
  11. local answer = io.read()
  12. if answer == "yes" then
  13.     term.setTextColor(RandomColor())
  14.   print("The color of the day is " .. RandomColor())
  15.  
  16. else
  17.   print("That's okay. Have a great day!")
  18. end
  19.  
  20. term.setTextColor(RandomColor())
  21.  
  22. --end
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement