Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can PathfindingService be made to "ignore" certain parts?

Asked by
Optikk 499 Donator Moderation Voter
5 years ago

I am working on improving the capabilities of some NPCs in my game, and I've come across an issue. The game map has some doors that the NPCs are able to open to continue about their business, but PathfindingService doesn't know that they can open/close these doors.

I thought a good way to implement this functionality would to have a way of providing PathfindingService a list of items that should not be considered obstructions, but I've searched to no avail. Is there a workaround or some way to do this?

If possible, I'd like to not have to remove the doors on the server and add them on the client (a suggestion I've read before) as this would (as of now) be very difficult to implement. Thanks for any help.

1 answer

Log in to vote
1
Answered by 5 years ago

You could simply take he npc's out of the doors collision group. I'm not exactly sure how to write a code out for you, as I can't see how your studio is set up. I think that is the only way to do this without having to create local parts for every single player.

0
You don't have to write any code for me, but I'll try and see if it works. Thanks for the help. Optikk 499 — 5y
Ad

Answer this question