How to make a sound loop?

How would you make a sound loop after you click a button. I am using the new Drag and Drop system, thank you in advance!

This should work without the wait block but it doesn’t. I had to check the length of the sound and then manually set the 3 seconds because that’s the duration of that file.

You’ll need to use a function block to create the “play sound” function.

Project link: Thunkable


Thank you!