local function u(k)if k:IsA("\066\097\115\101\080\097\114\116")then PhysicsService:SetPartCollisionGroup(k,CollisionGroupName)end for k,F in pairs(k:GetChildren())do u(F)end end local function k(k)u(k)end local function F(u)u.CharacterAdded:Connect(k)end local function c(k)u(k)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
