function Replica.ConnectOnClientEvent(z,r)if type(r)~="\102\117\110\099\116\105\111\110"then error("\091\082\101\112\108\105\099\097\067\111\110\116\114\111\108\108\101\114\093\058 \079\110\108\121 \102\117\110\099\116\105\111\110\115 \099\097\110 \098\101 \112\097\115\115\101\100 \116\111 \082\101\112\108\105\099\097\058\067\111\110\110\101\099\116\079\110\067\108\105\101\110\116\069\118\101\110\116\040\041")end table.insert(z._signal_listeners,r)return Madwork.NewArrayScriptConnection(z._signal_listeners,r)end function Replica.FireServer(r,...)rev_ReplicaSignal:FireServer(r.Id,...)end

function Replica:ConnectOnClientEvent(listener) --> [ScriptConnection] listener(...)
	if type(listener) ~= "function" then
		error("[ReplicaController]: Only functions can be passed to Replica:ConnectOnClientEvent()")
	end
	table.insert(self._signal_listeners, listener)
	return Madwork.NewArrayScriptConnection(self._signal_listeners, listener)
end

function Replica:FireServer(...)
	rev_ReplicaSignal:FireServer(self.Id, ...)
end
