Buff Follow

Hello Unity3D.I have a question about making an object follow a player.How can i make it that i can make a object follow a character/player?For example.I have a buff for my character that it uses which is a sword and i want it that whenever my character moves the sword follows the character at the exact speed time.If anyone knows how i can do this.Can you please tell me how?I have been searching and i can’t find it.

Script if anyone needs it

var target : Transform;
var moveSpeed = 100;
var rotationSpeed = 0;
var myTransform : Transform;
function Awake() {
        myTransform = transform;
function Start() {
        target = GameObject.FindWithTag("Player").transform;
function Update () {
    myTransform.rotation = Quaternion.Slerp(myTransform.rotation,
    Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed*Time.deltaTime);
    myTransform.position += myTransform.forward * moveSpeed * Time.deltaTime;

In that case, make the sword a child of the character and zero out it’s LocalPosition.