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 the AudioIndex0 vci.assets.audio._ALL_PlayFromIndex(0, audioVolume, audioLoop) end function onUnuse() --Stop playing AudioIndex0 vci.assets.audio._ALL_StopFromIndex(0) end