hello I want to know what’s the difference between sound stop sound play and sound pause sound resume?
Sound:Pause() doesn’t end the audio, it just pauses it.
Sound:Resume() starts playing the audio from where it was paused (sound.TimePosition).
3 Likes
Sound:Stop()
simply ends the audio and resets its TimePosition
to 0.
Sound:Pause()
suspends the audio in the TimePosition
, Sound:Resume()
ceases the suspension.
Sound:Play()
either plays from the last set TimePosition
via Script
or default 0. Spam this, and it will always go back to 0(assuming you didn’t set TimePosition
prior to it).
Function | Playing | TimePosition |
---|---|---|
Play | true | last set by script or 0 |
Stop | false | 0 |
Resume | true | - |
Pause | false | - |
If you pause, the TimePosition
remains the same as it was paused. Resume, it will play from the duration left.
Information found here:
3 Likes