This event is triggered when the playing audio object is paused.
Create an Audiosource player. Assign the audio path to the player to play. Stop playing the current audio after 2 seconds. Observe whether the event is triggered or not.
function SoundEndedEvent() -- define the method that the audio is paused print("The event of pausing playing is triggered") end local AS = RWObject.Create("AudioSource") -- create a player AS.PlayOnAwake =false AS.AudioClip = "rwid://L1vtZTBThT1RCvBVdK" -- assign a path AS.SoundPaused:Connect(SoundEndedEvent) -- register the event that the audio is paused AS:Play() -- play the audio wait(2) -- wait 2 AS:Pause() -- pause the audio