Stop

Constructor:

Stop()

Description

Stops the currently playing audio.

Examples

Create an Audiosource player. Assign the audio path to the player to play, and stop playing after 2 seconds.

local AS = RWObject.Create("AudioSource")  -- create a player
AS.PlayOnAwake =false
AS.AudioClip = "rwid://L1vtZTBThT1RCvBVdK"  -- assign a path
AS:Play() -- play the audio
wait(2) -- wait 2
AS:Stop() -- stop the audio