double output even though it should be possible C#

The console says “Hello World” twice when it should say it once, I’m not the best at coding, but It shouldn’t output it twice once it was told the first time to stop.

 void Update() {
    if (endOfThisScript == false)
    {
        if (openinglogo.startTheGame == true)
        {
            Debug.Log("Hello World");
            endOfThisScript = true;
        }
    }
}

Maye you have more than one of that script in your scene?

Try changing it to Debug.Log("Hello World!" + GetInstanceID() ); to see if there’s multiple instances.