I saved the game by saving the scene to a .tscn file, opening it later, but everything didn't save well.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By roma

I saved the game by saving the scene to a .tscn file, opening it later, but nothing was saved normally, as if everything was from the beginning, but with the positions saved.
(Called from the scene)
Download:

var packed_scene = load("user://scene.tscn")
var my_scene = packed_scene.instance()
add_child(my_scene)

Preservation:

var packed_scene = PackedScene.new()
packed_scene.pack(self)
ResourceSaver.save("user://scene.tscn", packed_scene)

Node variables are not saved. I tried to use it but nothing worked. The positions of the objects were preserved, but the rest was not. And the vehicleBody generally fell somewhere…
Is there any way to fix this, save the scene completely, or do I have to write my save code?