Adding a score and saving from one scene to another

Hi, I am new to C# and made a simple block dodge game. I was wondering how to add a scoring system using the game time. The concept I was thinking of would have a timer at the top of the scene and when you die you change scenes to the Game Over scene where the score will be displayed in seconds. However I have some issues creating the script. This is the script I am using to change the screens on contact with a block. Is there any way I can make the scoring system work? If yes please tell me. Thanks

using UnityEngine;
using System.Collections;

public class LoadNewArea : MonoBehaviour {

    public string levelToLoad;

    public string exitPoint;

    private PlayerController thePlayer;

    // Use this for initialization
    void Start () {
        thePlayer = FindObjectOfType<PlayerController>();
      
    }
  
    // Update is called once per frame
    void Update () {
  
    }

    void OnTriggerEnter2D(Collider2D other) {

        if(other.gameObject.name == "Player")
        {
            Application.LoadLevel(levelToLoad);
            thePlayer.startPoint = exitPoint;
        }
    }
}

Oh I used this script to reset the game from the Game over screen back to the game.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class MainMenu : MonoBehaviour {

    void Update()
    {
        if (Input.GetKeyDown("space"))
        {
            SceneManager.LoadScene(0);
        }
    }
}

I managed to make a script for the timer now I just need to transfer the timer from the main scene to the game over screen. Any help?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Timer : MonoBehaviour {

    Text text;
    float theTime;
    public float speed = 1;

    // Use this for initialization
    void Start () {
        text = GetComponent<Text>();
    }
   
    // Update is called once per frame
    void Update () {
        theTime += Time.deltaTime * speed;
        string seconds = (theTime % 60).ToString("00");
        text.text = seconds;
    }
}

Thanks

There are several ways to do that. I think in this case the easiest might be to make your Timer object stick around between scene loads. You can do this by adding gameObject.DontDestroyOnLoad(); to the Start method of your timer class.

Ok thank you