using UnityEngine; public class script : MonoBehaviour { public float xa; public float y; public float z; public Transform BodyTrans ; // Update is called once per frame void Update() { transform.position = BodyTrans.position + new Vector3( xa,y,z ) ; } }