Scoring system won't work

Hello, I’m making a scoring system for my game, and it’s not exactly working. I believe it has something to do with the different text objects, however, the collision isn’t registering either. I apologize for messy code.

using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using System.Collections;

public class Scoring : MonoBehaviour {

	public int playerScoreNum = 0;
    public int aiScoreNum = 0;
    public Text playerScore;
	public Text aiScore;

	void Start() {
                    playerScore = GetComponent<Text>();
			aiScore = GetComponent<Text>();
	}

    void OnTriggerEnter(Collider col) {
      Debug.Log(col.gameObject.name);
      if(col.gameObject.name == "arenaShortSide2")
        {
          PlayerScores();
        }
      if (col.gameObject.name == "arenaShortSide")
        {
	        AIScores();
	}
			
      SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    		}

	public void PlayerScores()
	{
		playerScoreNum = playerScoreNum + 1;
		playerScore.text = playerScoreNum.ToString();
	}

	public void AIScores()
	{
		aiScoreNum = aiScoreNum + 1;
		aiScore.text = aiScoreNum.ToString();
	}
}

Do you have a collider attached to both objects? Is one of the colliders marked as IsTrigger? Does at least one of the objects have a rigidbody attached? Did you make sure they aren’t mesh colliders?

Check the trigger message matrix at the bottom of this page for more detailed info.

Mesh colliders don’t trigger collision messages (or trigger messages) unless they are marked as convex. You are generally better off using primitive colliders to approximate the collision of anything that moves.

Try running using OnTriggerStay
Similar kind of thing happened to me a few seconds ago