I work on my first godot game (in 3D) and implemented a mechanism for changing (level-) scenes, but it does not work as expected.
You can get the code here: https://notabug.org/rbduck/Rolling_GoBot
On the main menu there are 2 buttons leading to other level-scenes.
With "R" you can restart the level and with "M" you get back to the menu. (there are also reset-planes in the levels which restart the level)
Sometimes the game crashes when restarting the level. Also after restarting the level, the world environment is gone.
(when going back to menu and starting the level again - the world environment is back...)
I also see these errors in the console

I don't know what happens and why??
Edit: I found a solution, can be marked as fixed / answered