Here is a very good, short video about saving the score.
When I started using Godot, I learned almost everything from this channel. Even though these videos are for Godot 2, I still recommend to watch the whole playlist, there are many good things in them about game development in general.