If you want to adjust the distance between waypoints to a specific number, you can put in parameters of the CreatePath function with a dictionary of agent parameters.
Options of agent parameters are on the top of the page of:
You can tweak the WaypointSpacing parameter like so:
local pathParameters = {
[“WaypointSpacing”] = <specific distance you want>
}
path:CreatePath(pathParameters)
(Note: You can raise this distance to a ridiculously high number but it will still adjust to any turns or corners that the path has to stop any ‘stuck’ issues)