Error when creating collision group

Currently, I am getting a strange error when I try to create a collision group. The error is “Could not create Collision Group.”, however, it does not contain any other information than that. I am unsure of how to go about fixing this. Has anyone else run into this issue before and found a fix for it?

Code for creating the collision groups:

local physics = game:GetService('PhysicsService')

physics:CreateCollisionGroup('VIPDoors')
physics:CreateCollisionGroup('Characters')
physics:CreateCollisionGroup('TrackWalls')
physics:CreateCollisionGroup('VIPCharacters')
physics:CreateCollisionGroup('RunnerCharacters')
physics:CreateCollisionGroup('SwimmerCharacters')

Where are you creating the collision groups?

You don’t need to keep creating collision groups. You can create them using the command bar, or you can use a plugin. Here’s CloneTrooper’s editor, which I recommend: https://www.roblox.com/library/826049158/Collision-Group-Editor.

Anyway, there’s a limit of 15 custom collision groups. It’s possible that you’re going over that limit. Make sure you aren’t over that limit. You can get a list of collision groups using GetCollisionGroups and remove the ones you don’t need using RemoveCollisionGroup. The plugin I mentioned also has a convenient interface for this.

3 Likes