local function V(S)if S:IsA("\066\097\115\101\080\097\114\116")then PhysicsService:SetPartCollisionGroup(S,CollisionGroupName)end for S,W in pairs(S:GetChildren())do V(W)end end local function S(S)V(S)end local function W(V)V.CharacterAdded:Connect(S)end local function A(S)V(S)end
-------------------

local function SetCollisionGroupRecursive(Object)
	if Object:IsA("BasePart") then
		PhysicsService:SetPartCollisionGroup(Object, CollisionGroupName)
	end

	for _, Objects in pairs(Object:GetChildren()) do
		SetCollisionGroupRecursive(Objects)
	end
end

local function OnCharacterAdded(Character)
	SetCollisionGroupRecursive(Character)
end

local function OnPlayerAdded(Player)
	Player.CharacterAdded:Connect(OnCharacterAdded)
end

local function OnMobAdded(Mob)
	SetCollisionGroupRecursive(Mob)
end
