Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Spooce 78
10 years ago

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

1 answer

Log in to vote
0
Answered by 10 years ago

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.
0
I had something similar to that, thanks though! Spooce 78 — 10y
0
Your welcome! I was a little bit worried because last time i tried for me it didn't work. TroytheDestroyer 75 — 10y
Ad

Answer this question