[FIXED] Incorrect Pathfinding Modifier Documentation

If you look at the Character Pathfinding | Documentation - Roblox Creator Hub page(specifically the pathfinding links source code at the bottom) you will find this line:

-- Use boat if waypoint modifier ID is "UseBoat"; otherwise move to next waypoint
if waypoints[nextWaypointIndex].ModifierId == "UseBoat" then

If you run this in studio, you will get an error. This is because ModifierId is not a property of a PathWaypoint | Documentation - Roblox Creator Hub. Instead, you need to check the Label property.


As you can see, the Label property of a PathWaypoint is the name of the PathfindingModifier if one is present.

Sorry for not posting this in documentation bugs. I don’t have access to post there so this seemed like the most fitting place.

6 Likes

I was wondering if I was the only person who noticed it… It’s still there
By the way, I think pathfinding guide needs some changes, for example there is nothing about jumping.
I can’t post in that category aswell, so I think it’s a good idea to ping roblox staff here: @thirdtakeonit (the first person with badge that I could find)

3 Likes

Yep, I had run into such issue when I was trying to make breakable fences by NPC (hopefully solved that myself).

Not only pathfinding, there’s need A LOT OF cahnges to guides and tutorials, because they provide only very basic info, while not giving ANY advanced stuff and possible mistakes and how to fix them.

2 Likes

This documentation error has been fixed. I made a pull request and it was fixed.


2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.