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

Help with sounds?

I'm making a simple music changer and using Stopped:wait() so it checks if the music has ended and putting other music on, I'm not sure if this is the way cause someone told me to use Stopped:wait(). I'm basically saying how can i check if the sound has ended?


Sound.Stopped:wait()
Sound:Destroy()


1 answer

✓ Accepted answer

Here is some example code that can describe what you can do.

repeat wait() until not Sound.IsPlaying
Sound:Destroy()

What the code is basically doing is gonna repeat wait() until the song ends or IsPlaying = false.

I hope this helped!

Sincerely, jmanrock123

2 comments

0

Thank you, I hope this works!

0

Please accept if it does, :)

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