how do I create a script that adds score when pressing a button and have it carry/add through scenes?

We are using unity in college and I am completely newb to coding. I hope some of you can help me. Its a yes or no question and both buttons add only 1 score and carry it next to another scenes… its like this, 5 questions, 5 scenes and i want them to show the score ur total is ‘5’ at the end.

I saw this code somewhere but its incomplete and i need to add that score data through multiple scenes

private int score = 0;
public Text scoreText;
// Use this for initialization
void Start () {
score = 0;
scoreText.text = “0”;
}

HEllo.

We are not coding providers.

We solve problems.

You asked 3 different things in 1 single post

Add score
Do something when pressing button
Preserve info through scenes

Go google this super-basic thingsand learn… We will help you if have some SPECIFIC problems.

Bye.

Post closed.