Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Sounds will not stop playing when :Stop() is called?

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.

3 answers

Er, I would suggest a loop.

Sound = INSERT SOUND LOCATION HERE

repeat
	Sound:Stop()
until Sound.IsPlaying == false

3 comments

0

Thanks it worked.

0

Quite welcome. Upvote mate? Lel.

0

I got ya.

With the answer given put a wait() in there to prevent a crash ;3

1 comment

0

There is already a buffer against crashing. It is stopping itself.

That's because you must use the command.. : pause() Nothing capital

This discussion is preserved as it was. New answers, comments, and votes are closed.