Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. rednet.open("bottom")
  2.  
  3. function Play(Note)
  4. rednet.send(22,Note)
  5. end
  6.  
  7. while true do
  8. sleep(0.05)
  9. local event, key = os.pullEvent( "key" ) -- limit os.pullEvent to the 'key' event
  10. if key == keys.e then
  11. Play(5)
  12. end
  13.  
  14. if key == keys.w then
  15. Play(1)
  16. end
  17. if key == keys.e then
  18. Play(4)
  19. end
  20. if key == keys.r then
  21. Play(7)
  22. end
  23. if key == keys.t then
  24. Play(10)
  25. end
  26. if key == keys.z then
  27. Play(14)
  28. end
  29. if key == keys.u then
  30. Play(17)
  31. end
  32. if key == keys.i then
  33. Play(20)
  34. end
  35. if key == keys.o then
  36. Play(22)
  37. end
  38. if key == keys.p then
  39. Play(24)
  40. end
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement