How to have a script run between 2 scenes


Iv’e made a script where it plays 4 different types of music one after each other and added that to an empty game object. I wan’t that game object to survive through different scenes. Iv’e tried ‘DontDestroyOnLoad’ but when i go on the next level the music starts again so i have two pieces of audio playing at once instead of the audio just carrying on through the different scenes… Anyone got an idea?



Is your object destroy? Or your music is restart? What is problem? @skypiggy,Is your object destroy or music start again? Are you use sou d manager?

@Raheel217 Well i just want the music to carry on playing when i switch scenes, with no interruptions