Power Up pick up script

How do I add 10 to the “scorecount”? Right now i’m using “+=” but it doesn’t seem to work! Pls help!

HUDscript hud;
HUDscript scorecount;
void OnTriggerEnter2D(Collider2D other)
{
	if(other.tag == "Player")
	{
		hud = GameObject.Find("Main Camera").GetComponent<HUDscript>();
		scorecount.+= (10);
		Destroy (this.gameObject);
	}
}

Leave the “.” away from the “scorecount” variable.

If I understand correctly, you have a integer of float variable inside your HUDscript?
I cannot see your “scorecount” variable getting initialized, are you sure you’ve done this?
If this is the case you should use (Felt free to correct your code):

        HUDscript hud;
        HUDscript scorecount;

        /// <summary>
        /// Initialize your variables here
        /// </summary>
        protected void Awake()
        {
            hud = Camera.main.GetComponent<HUDscript>();

            // Didn't you mean to initialize the "scorecount" variable?
            scorecount = Camera.main.GetComponent<HUDscript>();
        }

        /// <summary>
        /// Detect if this collider collides with the player trigger
        /// Make sure there is at least one rigidbody on one of the colliders
        /// </summary>
        /// <param name="other">The other collider</param>
        protected void OnTriggerEnter2D(Collider2D other)
        {
            if (other.tag == "Player")
             {
                scorecount.scoreValue += 10;
                Destroy(gameObject);
            }
        }

Please teach yourself some more C# and Unity best practices before going any further!