GetWaypoints() Error

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve?

I wish to achieve a way to fix or learn on how this is an error.

  1. What is the issue?

(Screenshot describes it best)

image

  1. What solutions have you tried so far?

I have tried looking through the Roblox Developer Fourm to see for anyone else who has a similar issue to mine, as well as redoing the code, same error persists.

It is probably just the type checker failing, it often has trouble with Service resources. You could fix this “error-type” by declaring waypoints as

local waypoints: {PathWaypoint} = path:GetWaypoints()

If this is an actual failure, with an error being thrown, then you should check if the path is valid before getting waypoints with if path.Status == Enum.PathStatus.Success then

This definitely helped with the fix. Thanks for the response and help!