Make tutorial appear only once

So I’m trying to make the tutorial game object only appear the first time the play button is pressed. If it’s not the first time it has been pressed then I just want to load the game. With the code down below the tutorial gameobject appears even if it has been pressed before. I’m fairly new to coding so anything could help.

    public GameObject tutorial;
    public GameObject mainMenu; 

    private void Start()
    {
        PlayerPrefs.SetInt("TutorialHasPlayed", 0);
    }

    public void Play()
    {
        if(PlayerPrefs.GetInt("TutorialHasPlayed") == 0)
        {
            tutorial.SetActive(true);
            mainMenu.SetActive(false);
            PlayerPrefs.SetInt("TutorialHasPlayed", 1);
        }
        else
        {
            SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
        }
     }

Hi,
In Start method you are resetting TutorialHasPlayed back to 0, so each time you load menu scene it will be 0. I think you wanted that to reset tutorial between play modes, so to this you can just clear player prefs by going into Unity at the top Edit => Clear AllPlayerPrefs. Now you can remove Start method and manually reset PlayerPrefs as normal user would have to uninstall game / clear saves to get tutorial back.