Error with InvokeRepeating

NOOB ALERT

I’m new to Unity so I’m thinking that I messed up on something really simple.

I’m making a timer-based score system, and I’m using InvokeRepeating. This is my code:

InvokeRepeating("SecondScore", 0, 1f);

void UpdateScore ()
{
	scoreText.text = "Score: " + score * 10;
}

void SecondScore ()
{
	score + 10;
}

UpdateScore () is when the player destroys something, and SecondScore () is the timer.

Now, I’m getting this error that says Assets/_Completed-Assets/Scripts/Done_GameController.cs(84,3): error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement. I assume that means that the + operator is invalid, but that doesn’t make sense.

So, what’s wrong, and how can I fix it?

InvokeRepeating(“SecondScore”, 0, 1f);
void UpdateScore ()
{
scoreText.text = "Score: " + score * 10;
}
void SecondScore ()
{
score += 10;
}

Score + 10 was the problem compiler dose not seems to understand that what you were trying to do with score as the error said only Only assignment, call, increment, decrements, await, and new object expressions can be used as a statement you have to assign score to something that how it works