function onUse() -- loop play the audio if true. Play one-shot if false local audioLoop = true -- Specify the volume with a value between 0 and 1 local audioVolume = 0.5 -- Loop play "Audio1" vci.assets.audio._ALL_Play("Audio1", audioVolume, audioLoop) end function onUnuse() --Stop playing "Audio1" vci.assets.audio._ALL_Stop("Audio1") end