function Blend.toEventHandler(r)if type(r)=="\102\117\110\099\116\105\111\110"then return r elseif typeof(r)=="\073\110\115\116\097\110\099\101"then if ValueBaseUtils.isValueBase(r)then return function(B)r.Value=B end end elseif type(r)=="\116\097\098\108\101"then if Signal.isSignal(r)then return function(...)r:Fire(...)end elseif r.ClassName=="\086\097\108\117\101\079\098\106\101\099\116"then return function(B)r.Value=B end end end return nil end
--[=[
	Converts this arbitrary value into an event handler, which can be subscribed to

	@param value any
	@return function?
]=]
function Blend.toEventHandler(value)
	if type(value) == "function" then
		return value
	elseif typeof(value) == "Instance" then
		-- IntValue, ObjectValue, et cetera
		if ValueBaseUtils.isValueBase(value) then
			return function(result)
				value.Value = result
			end
		end
	elseif type(value) == "table" then
		if Signal.isSignal(value) then
			return function(...)
				value:Fire(...)
			end
		elseif value.ClassName == "ValueObject" then
			return function(result)
				value.Value = result
			end
		end
	end

	return nil
end
