local function M(M)setCollisionGroupRecursive(M,playerGroup)M.DescendantAdded:Connect(function(M)if M:IsA("\066\097\115\101\080\097\114\116")then PhysicsService:SetPartCollisionGroup(M,playerGroup)end end)end

local function onCharacterAdded(character)
	-- Put all of the current parts of the model into the player collision group
	setCollisionGroupRecursive(character, playerGroup)
	
	-- Put any part that gets added to the character later into the collision group
	character.DescendantAdded:Connect(function(descendant)
		if descendant:IsA("BasePart") then
			PhysicsService:SetPartCollisionGroup(descendant, playerGroup)
		end
	end)
end
