Problem

You erroneously refer to the object’s “transform” by its class name, “Transform” on line 18.
You misspelled transform as “trnasform” on line 20.
You have inconsistent capitalization of “GetNextWaypoint” and “GetNextWayPoint” on lines 22 and 26.
You misspelled “Length” as “Lenght” on line 28.
You class name is “Waypoints” but you are referring to it as “Waypoint” on line 35.

Spelling & capitalization are important when programming. A computer can’t infer your intent, so you need to make sure to give it exactly what you mean to.

You can also refer to my post here on how and why to read error messages.