I/O Unit for Armodia (custom) not working


The Console

local debugEnabled = true

local Core = {
	Vocovo = function(Alarm)
		if Alarm == "Security" then

		elseif Alarm == "Evac" then

		elseif Alarm == "Reset" then

		end
	end,

	PAVA = function(Alarm)
		if Alarm == "Security" then
			workspace:FindFirstChild("PAVA"):WaitForChild("Event"):Fire("Security")
		elseif Alarm == "Evac" then
			workspace:FindFirstChild("PAVA"):WaitForChild("Event"):Fire("Evac")
		elseif Alarm == "Reset" then
			workspace:FindFirstChild("PAVA"):WaitForChild("Event"):Fire("Off")
		end
	end,
}

local console = {
	log = function(msg)
		if debugEnabled  then
			print("Flow Interface | "..msg)
		end
	end,
}

local Evr = {
	Evac = function()
		console.log("Evac Event Fired")
		Core.Vocovo("Evac")
		Core.PAVA("Evac")
	end,

	Reset = function()
		console.log("Reset Event Fired")
		Core.PAVA("Reset")
	end,

	Security = function()
		console.log("Security Event Fired")
		Core.PAVA("Security")
	end,
}

local Core = {
	Vocovo = function(Alarm)
		if Alarm == "Security" then
			
		elseif Alarm == "Evac" then
			
		elseif Alarm == "Reset" then
			
		end
	end,
	
	PAVA = function(Alarm)
		if Alarm == "Security" then
			workspace:FindFirstChild("PAVA"):WaitForChild("Event"):Fire("Security")
		elseif Alarm == "Evac" then
			workspace:FindFirstChild("PAVA"):WaitForChild("Event"):Fire("Evac")
		elseif Alarm == "Reset" then
			workspace:FindFirstChild("PAVA"):WaitForChild("Event"):Fire("Off")
		end
	end,
}





-- No need to edit below






local FlowAPI = workspace["Armodia Systems LTD - FLOW Expanded [Flow2+]"].Event




FlowAPI.Event:Connect(function(FlowEvent)
	if FlowEvent.AllCommand == 'Reset' then
		Evr.Reset()
	elseif FlowEvent.FireInfo then
		if FlowEvent.FireInfo.AlarmType == 'Evac' then
			Evr.Evac()
		elseif FlowEvent.FireInfo.AlarmType == 'Security' then
			Evr.Security()
		end
	end
end)

The offending code

Resolved (aka i couldnt be bothered)