So my player goes through a portal in the next scene and resets my score. How to make the score not reset?

So my player goes through a portal in the next scene and resets my score. How to make the score not reset?

1- I edited your post. Your code is irrelevant for that question.

2- The question is “How to save data when changing scenes?”

3- The answer is: Learn about data peristance here:

Good luck!