-- Generated by https://roblox-ts.github.io v0.0.34
-- Compiled May 9, 2019, 6:07 PM Coordinated Universal Time


local _exports = {};
local Connection;
do
	Connection = {};
	Connection.__index = {
		Fire = function(self, data)
			if self.Connected then
				self.Function(data);
			end;
		end;
		Disconnect = function(self)
			self.Connected = false;
		end;
	};
	Connection.new = function(...)
		return Connection.constructor(setmetatable({}, Connection), ...);
	end;
	Connection.constructor = function(self, Function)
		self.Function = Function;
		self.Connected = true;
		return self;
	end;
end;
_exports.Connection = Connection;
return _exports;
