Transform.Position stop?

I’m trying to make an enemy that moves towards you when you dont look and when you look it stops moving. How can i make it stop when i look at it?

if(canSee == false){
  transform.position += transform.forward*MoveSpeed*Time.deltaTime;	
//what do i put here?

It seems like you don’t have to put anything there. If you aren’t adding to the transform then it will stay the same as it was.