So I Recently Stumbled Upon A Error In My Game It Says:
****Cannot Create Collision Group One Already Exists
So I Was Wondering How Could I Check To See If it Already Exists To Prevent Errors?
Here Is My Code:
physicsService = game:GetService'PhysicsService'
for i = 1,3 do
if physicsService:GetCollisionGroupName("Group"..i) then
print("Collision Groups Exist!")
else
physicsService:CreateCollisionGroup("Group"..i)
end
end
physicsService:CollisionGroupSetCollidable("Group1", "Group2", false)
Please Help As I Have Not Seen This Error Before.

1 comment
Thanks I Will Try It