Inaccessible due to its protection level

using UnityEngine;
public class ZScore25 : MonoBehaviour
{
    void DeductPoints(int Damage)
    {
        GlobalScore.CurrentScore = 25;
    }
}

This code came up with an error saying ‘GlobalScore.CurrentScore’ is inaccessible due to its protection level. I am not sure what to do.

You already have this question at the end of your previous post. It’s not helpful to spread the same question around.

In C#, you need to learn about the public keyword, and how you can declare the CurrentScore variable as being modified by other classes using it.