Hi guys! I created this very simple script. When the player go in a Trigger zone audio.Play and when the player exit audio.Stop.
Script (Js)
Script (Js)
Code:
function OnTriggerEnter(){
audio.Play(); }
function OnTriggerExit(){
audio.Stop(); }