function ServiceBag.CreateScope(K)local D=ServiceBag.new(K)K:_addServiceType(D)K._maid[D]=D._destroying:Connect(function()K._maid[D]=nil K._services[D]=nil end)return D end
--[=[
	Creates a scoped service bag, where services within the scope will not
	be accessible outside of the scope.

	@return ServiceBag
]=]
function ServiceBag:CreateScope()
	local provider = ServiceBag.new(self)

	self:_addServiceType(provider)

	-- Remove from parent provider
	self._maid[provider] = provider._destroying:Connect(function()
		self._maid[provider] = nil
		self._services[provider] = nil
	end)

	return provider
end
