Can you help me with this issue? Cant use a Text as an int so how can i do this? Im a newbie btw

public void Update()
{

    if (isdead == false)
    {
        score += Time.deltaTime * 25;
        
        scoreText.text = ((int)score).ToString();

        if (scoreText > PlayerPrefs.GetInt("Highscore"))
        {

            PlayerPrefs.SetInt("Highscore", scoreText);
        }

    }

score is your numeric value, right? So you want:

PlayerPrefs.SetInt("Highscore", (int)score);