unity 3d error CS1061 game object does not contain definition for transform

In actual fact it likely says “does not contain definition for tranform

Note that the error also tells you both the line and column so given the error you can locate exactly where it means.

If you had used code-tags here (please always do this) then I’d be able to tell you the line above but it’s likely this line:

if (Vector3.Distance(transform.position, waypoints[currentWaypointIndex].tranform.position) < .1f)

You have to be 100% accurate on your typing, the compiler won’t forgive you. :wink: