I am not sure how to explain this, but this is how my script goes.
- I click a music play button
- It plays music and always plays music in a loop until I hit the play button again
- I hit the play button
- It stops the music from playing but then the other function is still running and it runs a new function of the same script
You can see how it becomes problematic. Now I have two functions running in the background & if I press the play music button again, another function runs and this is really bad because now I have music playing randomly and I do not know how to fix this. How can I fix this, can you link me to a snippet? THANKS!

2 comments
If you could post the actual script it might help!
I believe there is a property to set the sound to looped. You could do this through script maybe?