function Signal.Connect(S,m)if not(type(m)=="\102\117\110\099\116\105\111\110")then error(("\099\111\110\110\101\099\116\040\037\115\041"):format(typeof(m)),2)end return S._bindableEvent.Event:Connect(function()if S._argData~=nil and S._argCount~=nil then m(unpack(S._argData,1,S._argCount))end end)end
--- Connect a new handler to the event. Returns a connection object that can be disconnected.
-- @tparam function handler Function handler called with arguments passed when `:Fire(...)` is called
-- @treturn Connection Connection object that can be disconnected
function Signal:Connect(handler)
	if not (type(handler) == "function") then
		error(("connect(%s)"):format(typeof(handler)), 2)
	end

	return self._bindableEvent.Event:Connect(function()
		if self._argData ~= nil and self._argCount ~= nil then
			handler(unpack(self._argData, 1, self._argCount))
		end
	end)
end
