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 make a repeat loop until a sound has stoped?

I have a sound and if its stoped the loop should stop how do i do this?

1 answer

✓ Accepted answer
local SoundStopped = false
Sound.Stopped:Connect(function()
     SoundStopped = true
end)

repeat
--code
until SoundStopped = true

Something like this should work

2 comments

0

Just needed to know if there aws a function to do this , This opens up a new world for me i was using wait(sound.Timelenght)

0

Uh.. you can just use Sound.Ended:Wait()

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