Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Define monitor, attached to the right of the computer
- speaker = peripheral.wrap("right")
- -- Indefinate loop
- while true do
- -- Stop for a random amount of seconds between 1 and 10 seconds
- sleep(math.random(1,300))
- -- Play the selected sound through our speaker
- speaker.playSound(botania:doit, 1, 1)
- -- Print the played sound
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement