I have a simple game where if you die or press r the scene resets and music doesen’t restart (i’m using DontDestroyOnLoad) but the problem is it still keeps playing even when i change scene i.e. when i go to the main menu, how can i fix this?
Why not make an if statement declaring to only run dontdestroyonload when on the game scene else destroy it?