Stop rotating in the Follow AI script

I have a basic follow AI on some items my character gains by killing the enemy (it spawns and then it just glides to them) but the problem is that the item itself just orbits around the player. I’m new to Unity3D so I’m unsure how to remedy this. Can anyone help me figure out how to make the object just fly directly to the player and not rotate around it?

var target : Transform;
var moveSpeed = 20;
var rotationSpeed = 5;
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;
   
   
 
 
}

Replace line 26 with:

myTransform.position = Vector3.MoveTowards(myTransform.position, target.position, moveSpeed * Time.deltaTime);

Alternate solution:

myTransform.position += (target.position - myTransform.position).normalized * moveSpeed * Time.deltaTime;