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.
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.
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