yoyoyyoghurtboyyyy

Untitled

Nov 23rd, 2021 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Playing = false
  2. Time = 0
  3. while true do
  4. if Time > 155 then
  5. shell.run("tape rewind")
  6. Time = 0
  7. end
  8. if (Playing == true and redstone.getInput("back") == false) then
  9. Playing = false
  10. shell.run("tape stop")
  11. os.sleep(5)
  12. Time = 0
  13. end
  14. if (Playing == true and redstone.getInput("back") == true) then
  15. os.sleep(5)
  16. Time = Time + 5
  17. Playing = true
  18. elseif (redstone.getInput("back") == true and Playing == false) then
  19. Time = 0
  20. shell.run("tape rewind")
  21. shell.run("tape play")
  22. Playing = true
  23. os.sleep(5)
  24. else
  25. Playing = false
  26. os.sleep(5)
  27. end
  28. end
  29.  
Add Comment
Please, Sign In to add comment