Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Code to find the side the speaker is on goes here.
- if SpeakerSide ~= false then
- speaker = peripheral.wrap(SpeakerSide)
- end
- RandomSong = {95, 98, 103, 127, 153, 169, 186, 196, 194, 189, 183, 175, 171, 179,
- 184, 181, 181, 180, 169, 157, 153, 156, 155, 151, 149, 150, 146, 141, 137, 129, 125, 140, 154, 161,
- 169, 172, 176, 185, 183, 173 ...}
- --The actual table is MUCH longer.
- if speaker then
- speaker.setAttenuation(0)
- for k, v in pairs(RandomSong) do
- speaker.start(1, v)
- sleep(0.01)
- end
- speaker.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement