Adding trigger delay

I have a trigger script that will trigger the Menu screen to appear instantly as the object hits (collides) the trigger.

How would I add few seconds of delay?
I’m not sure how to use: “yield return new WaitForSeconds();”

Here is my current code:
using UnityEngine;
using System.Collections;

public class TriggerScript : MonoBehaviour 
{
   public Transform target; 
	
	void OnTriggerEnter(Collider other)
	{
		Application.LoadLevel("Menu");
		//yield return new WaitForSeconds(5);
	}

}

I have commented out the code because it was causing an error.

I guess this is how it should be? Maybe? Dont have chance to test i right now.

public class TriggerScript : MonoBehaviour{
	public Transform target;
    
    void OnTriggerEnter(Collider other){
		    StartCoroutine(LoadLevelDelay);
    }
    
	private IEnumerator LoadLevelDelay(){
    		yield return new WaitForSeconds(5.0f);
		    Application.LoadLevel("Menu");
	}
}

Maybe this earlier post can help you: WaitForSeconds not working in OnTriggerEnter event - Unity Answers

Yield WaitForSeconds can only be used inside a coroutine. You will need to call on the other function when you enter the trigger. For example:

using UnityEngine;
using System.Collections;

public class ExampleScript : MonoBehaviour {

    void OnTriggerEnter(Collider other)
        {
           StartCoroutine("Example");
        }
    
    IEnumerator Example() {
            yield return new WaitForSeconds(5);
            Application.LoadLevel("Menu");
        }
}