Follow and pull alongside script help

Hi

I’ve written a script to make a ship follow and pull alongside a moving target. But I think it is a bit clunky and inefficient. I am a modeller rather than a programmer, so I thought I’d see if someone could give me some advice and feedback.

It works, but please tell me how to improve this script.

I have attached the script.1118544–42167–$FollowTarget.js (2.86 KB)

Thanks to anyone who can share some advice.

you can use the unity’s SmoothFollow.js script or another script. Theres one i found on google, search up EnemyAiFollow script on unityAnswers