Path:GetWaypoints()
gives you an array of PathWaypoint
objects, and print is just formatting it as if it was a tuple similarly to RaycastResult
.
It’s printed out in this order:
{Position.X, Position.Y, Position.Z}, PathWaypointAction, Label
It looks confusing but you can access the data from the points by just indexing it with a dot operator.
I’d reccomend setting the type to PathWaypoint
so that you have autocompletion aswell, it can help clear the confusion.
for i, point: PathWaypoint in waypoints do
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.