Collision Filtering with local parts

I have models that are created locally, and I want to make them not collide with the other models. How can I go about this?

I’ve already tried using the “NoCollisionConstraint” but it causes performance issues due to the script having to make thousands of them for every individual part.

Yeah same here, I can’t figure it out.

Have you looked into collision groups/collision filtering?

4 Likes

API can only be used on the server, and this is for locally created models in a local script.

I’m not sure if this relates but

Edit: Apologies, I think the server would have to create the collision group and I don’t think that would be possible with a locally created part

Why’s it bad if the server needs to create the groups? Realistically the majority of your use cases of CollisionGroups are going to be static so the server can create and setup collision relationships when the server initialises and clients can manage the groups of local parts for local filtering.

2 Likes

Oh, I didn’t realize that the client could manage the groups because of what OP said. Sorry, I don’t have much experience with collision groups myself.

I’ve tried to use the server to create the collision groups, and the client to add the parts to the group. It doesn’t seem to be working for me.

Nvm, I fixed it, it does work with locally created parts. Thank you.