Advertisement
DOGGYWOOF

beep loop

Jan 6th, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. -- Function to play a note ten times with a delay
  2. local function playNoteTenTimes()
  3. for i = 1, 10 do
  4. -- Redstone output to trigger the note block
  5. redstone.setOutput("back", true)
  6. sleep(0.5) -- Adjust this delay as needed
  7. redstone.setOutput("back", false)
  8. sleep(0.5) -- Adjust this delay as needed
  9. end
  10. end
  11.  
  12. -- Call the function to play the note ten times
  13. playNoteTenTimes()
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement