How do I can do this more ideal?

I have a script, that makes right arm look at the part and size of the arm depending on the magnitude. I wanna make it ideal