When I reload my scene, why does nothing work? dontDestroyOnLoad

When I reload my scene or leave it and go back to it, nothing works. Player cant move, objects wont spawn etc.

I think it has something to do with a dontDestroyOnLoad gameObject that gets created when I run the game. I don’t actually know what this object is doing, but I think it is part of a 2D light pack I am using.

How can I prevent this from breaking everything? I just simply want to reload the current scene and have everything start from the beginning. I dont have any Static variables and I only have a menu and game scene. Menu just has a start and quit.

Sorry if this is a simple answer that I should know. I am quite new.

Find the DontDestroyOnLoad( entries in the scripts used in the project and comment them.