I can't get my gameobject to pause on its own / How do I code the gameobject to pause and unpause by itself in c# on unity3d

I am having trouble figuring out how to pause and unpause the gameobject . I need the gameobject to pause for a eight seconds or longer . Here is what I got for code :

using UnityEngine;
using System.Collections;

public class hu : MonoBehaviour {
GameObject[] pauseObjects;
public bool isPaused;
	void Start () {

	pauseObjects = GameObject.FindGameObjectsWithTag("Player");

	}
	
	// Update is called once per frame
	void Pause () {
	
		{
			if(Time.timeScale == 1)
			{
				Time.timeScale = 7f;
				
			} else if (Time.timeScale == 8f){
			
				Time.timeScale = 1;
				
			}
	}
}
}

Void pauseGameobject()

{

if(//give your condition when or how will the gameobject pause)

{

start coroutine(“wait”);

}

}

public ienumenator wait()

{

time.timescale = 0;

yield return new waitforsceonds(7);

time.timesale = 1;

}