Trying to make a score text

So Im trying to make a script that increases the score.

 private TextMeshProGUI text;
    private string Text;
    public float score = 0f;

But for some reason I get this error

What am I doing wrong? I installed the TextMeshProGUI so I don’t get what I’m doing wrong.
I’m using Unity 2020.3.

Did you add the appropriate using? I think it is TMPro but don’t quote me on that.

Did you mean TextMeshProUGUI? Has an extra U.

2 Likes