Hi there, I am trying to create a Collision Group in a model,but I don’t know how to do that, I don’t know how to add this in
local descendants = game.Workspace.Partsmodel:GetDescendants()
for index, descendant in pairs(descendants) do
– try to find a basepart inside the group into Collision Group
end
local PhysicsService = game:GetService(“PhysicsService”)
local groupNameA = “A”
local groupNameB = “B”
PhysicsService:CreateCollisionGroup(groupNameA)
PhysicsService:CreateCollisionGroup(groupNameB)
PhysicsService:SetPartCollisionGroup(part, groupNameA)
– In here I don’t know how to do that
PhysicsService:SetPartCollisionGroup(workspace:WaitForChild(“Partsmodel”), groupNameB)
PhysicsService:CollisionGroupSetCollidable(groupNameA, groupNameB, false)