using UnityEngine; public class connectToFace : MonoBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created public Transform target; void Start() { } public float speed = 1f; // Update is called once per frame void Update() { transform.position=Vector3.Lerp(transform.position, target.position,speed*Time.deltaTime); } }