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

Is there a way to detect when a sound is finished playing?

If so, how? I want to play a sound right after the first sound is finished playing.

1 answer

✓ Accepted answer

what i'd do is count the seconds in the song then print it in wait. heres an example:

While true do
local soundIDs = (1234567, 7654321) -- put your soundIDs here.
                    			-- put the first sound's name here then I think do play.
1stsound:Play()
wait(40) -- the amount of time it takes to play the sound
2ndsound:Play()
wait(40) -- the amount of time it takes to play the sound
end
-- hope this works! this is what I used for mine.

2 comments

0

I had something similar to that, thanks though!

0

Your welcome! I was a little bit worried because last time i tried for me it didn't work.

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