Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I disable collision on an NPC?

I've been creating this game with pathfinding AI, and I came across this little problem.

I can't manage to get the pathfinding right and this NPC likes to Walk around the store to get to the end position. He ends up running into a wall and staying.

I need to know how to get the NPC not able to collide with walls, but can with floors.

Thanks for all help!

1 answer

✓ Accepted answer

Okay, there's not really a good way to get something to only interact with certain things. So let's try it a different way:

Give the NPC some pathfinding nodes
This allows you to use Pathfinding from node to node, which allows you to make custom points to path to and for you to get around tricky bits which the default pathfinding has trouble with. This also has the benefit of having increased fidelity in some cases and better scriptability.

This discussion is preserved as it was. New answers, comments, and votes are closed.