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

How to tell when a sound stops.

Asked by 10 years ago

About 8 hours ago, the sound engine was updated. How does one detect that a sound has stopped, if there is a way? I am totally stumped.

The info of the update was on developer.roblox.com.

1 answer

Log in to vote
4
Answered by 10 years ago

I suppose you could use isPlaying from the sound to check if it is playing or not.

Ex.

Sound = script.Sound
Sound:Play()

if sound.isPlaying == false then
 --Code
end
0
Ok, ill test that. FromLegoUniverse 264 — 10y
0
Works, thanks FromLegoUniverse 264 — 10y
0
No problem ;D DragonSkyye 517 — 10y
Ad

Answer this question