I think you are missing the
World in your path...
get_tree().get_root() returns the root viewport of the scene.
Also, on a second note, i think you shouldnt add user interface as a child of a camera, but instead place the user interface on a canvas layer.
And lastly, why are you setting the user inteerface, added as child of the camera, as the tree current scene?