My Time.timeScale goes to 1 when I start the game even if I change it

I have no idea why this is happening, I don’t have any Time.timeScale in my other scripts and even if I just create a new script and attach it to a gameObject and type in the Update method Time.timeScale = 0f, as soon as I hit play, the Time.timeScale goes to 1.

Does it work like this?

void Start()
  {
    Time.timeScale = 0f;
  }

Use maybe the Time.timeScale = 0f in the Start method…