You should paste those errors, here, so we can try to tell you what's going wrong, but the thing that sticks out to me is that I'm going to assume you're using C#, and you forgot the "new" keyword in front of Vector3?
It should look like this:
transform.LookAt(new Vector3(target.position.x, transform.position.y, target.position.z));
Trending Articles
More Pages to Explore .....