Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Function to play a note ten times with a delay
- local function playNoteTenTimes()
- for i = 1, 10 do
- -- Redstone output to trigger the note block
- redstone.setOutput("back", true)
- sleep(0.5) -- Adjust this delay as needed
- redstone.setOutput("back", false)
- sleep(0.5) -- Adjust this delay as needed
- end
- end
- -- Call the function to play the note ten times
- playNoteTenTimes()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement