function Blend.toEventHandler(c)if type(c)=="\102\117\110\099\116\105\111\110"then return c elseif typeof(c)=="\073\110\115\116\097\110\099\101"then if ValueBaseUtils.isValueBase(c)then return function(g)c.Value=g end end elseif type(c)=="\116\097\098\108\101"then if Signal.isSignal(c)then return function(...)c:Fire(...)end elseif c.ClassName=="\086\097\108\117\101\079\098\106\101\099\116"then return function(g)c.Value=g end end end return nil end

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
