Advertisement
xFroodyx

Untitled

Aug 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. -- Define monitor, attached to the right of the computer
  2. speaker = peripheral.wrap("right")
  3.  
  4. -- Indefinate loop
  5. while true do
  6.  
  7. -- Stop for a random amount of seconds between 1 and 10 seconds
  8. sleep(math.random(1,300))
  9.  
  10. -- Play the selected sound through our speaker
  11. speaker.playSound(botania:doit, 1, 1)
  12. -- Print the played sound
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement