PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

Ended

Fires when the Sound has completed playback and stopped. Note this event will not fire for sounds with Sound/Looped set to true as they continue playing upon reaching their end.

This event is often used to destroy a sound when it has completed playback.

sound:Play()
sound.Ended:Wait()
sound:Destroy()

This event only fires if the sound has reached its end. This means it will also not fire when the sound is stopped before playback has completed, for this use Sound/Stopped.

Parameters

Name Type Default Description

The Sound/SoundId of the Sound that has ended.