Music in different Szeenes: Bug?? Please Help

Where is the Bug, because it dont work.

Can you please complete the code for me?

Thanks :slight_smile:


#pragma strict

var music : GameObject;

function Awake () {
DontDestroyOnLoad(music);
}

try
DontDestroyOnLoad(gameObject);
instead of
DontDestroyOnLoad(music);