The title says it all. I want to know how I can make it so npc’s don’t collide with anything but the ground.
Collision Groups look like a place to start at for this type of things.
A collision group is basically a group of things that can or can not collide with each other.
I have tried using them, but they get extremely lagy when there are alot of npcs.
Probably related to how your code is laid out.
When you refer to a lot of NPCs, do you mean it lags when there’s a lot of NPCs around or do you mean that it lags when they’re all colliding? If it’s the latter, this has been an issue for many developers.
If it’s the former, you ought to review your code over. Working with Humanoids is ugly but alas, the Avatar Evolution demo with Humanoid componentisation has arrived. You can remove pieces from the box you don’t need to construct an ideal Humanoid for your game.
I mean when there is alot of NPC’s around.