Freezing playerposition for some seconds after pushing button

How can i freeze a playerposition for some seconds after pushing a button. The rest of the script needs to continue while the player is frozen…
Thanks in advance

So you are probably better off actually modifying the code that moves you - but this may well do it, it will be trickier if you have animatoins:

#FreezeMe.js

 var frozenPosition : Vector3;
 var frozenRotation : Quaternion;
 var frozenTime : float;

 function Update() {  
      if(Input.GetKeyDown("f") && frozenTime <= 0)
      {
           frozenPosition = transform.position;
           frozenRotation = transform.rotation;
           frozenTime = 3;
      }
 }

 function LateUpdate() {
      if(frozenTime > 0) {
          frozenTime = Mathf.Max(0, frozenTime - Time.deltaTime);
          transform.position = frozenPosition;
          transform.rotation = frozenRotation;
      }
 }

Thanks that did the trick !!!