IsPlaying doesn't turn off when sound ends?

Currently there is no way for game makers to detect when a sound ends.
Oh wait, sounds have an “isPlaying” variable! We’re saved!

Except…when the sound ends…that stays true until you call stop. Making it UTTERLY useless.

2 Likes

I think this post got necro-ed but this definitely works now:

local sound = Instance.new("Sound",game.Workspace)
sound.SoundId = "rbxassetid://487726169"
sound:Play()
while true do
	if sound.IsPlaying == false then
		break
	end
	wait(0.05)
end
print(string.format("sound has finished(%s)",tostring(sound.IsPlaying)))

hooray :slight_smile:

1 Like