I have been trying all kinds of ways to play and stop music but whenever I stop the music and remove it, it keeps playing. I simply put the sound in workspace after creating it and played it then later on I stopped it and played a different sound but the first sound continued to play... Is there any way I can actually make the sound stop playing? If so please provide a code that will most definitely stop the sound.
Er, I would suggest a loop.
1 | Sound = INSERT SOUND LOCATION HERE |
2 |
3 | repeat |
4 | Sound:Stop() |
5 | until Sound.IsPlaying = = false |
With the answer given put a wait() in there to prevent a crash ;3
That's because you must use the command.. : pause() Nothing capital