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 check if a sound is playing?

Hi guys!

I was just wondering... is there anyway of checking if any sound instance is still playing in a player?

Thanks

1 answer

✓ Accepted answer

You can check if the IsPlaying property of the sound is true.

if sound.IsPlaying then
	-- TODO: do something if the sound is playing
end

There's a complementary IsPaused if you want to check if the sound is paused, but it's essentially the opposite of IsPlaying

3 comments

0

Thanks! I'm assuming you can do if sound.IsPlaying then

0

sound:Stop() end ? :)

0

Yes! You don't even have to check if the sound is playing to stop it.

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