hey guys i was worndering how to add a feature to a fire panel that when the genorator gets turned off the panel beeps and says AC power Trouble here is the panel script for a idea what i mean (the location of the genorator is workspace.Trafo
if not fTrouble then
fTrouble = true
coroutine.resume(coroutine.create(function()
local T;
if Type == "Panel" then T = "Panel" SetLcd("Panel Trouble! Press Ack to ack",2) end
if Type == "Alarm" then T = "Alarm" SetLcd("Alarm Trouble! Press Ack to ack",2) end
if Type == "AC" then T = "AC/POWER" SetLcd("AC/POWER Trouble! Press Ack to ack",2) end
PanelLcd.Beep:Play()
repeat
Indicators.Trouble.BrickColor = BrickColor.new("New Yeller")
wait(0.15)
Indicators.Trouble.BrickColor = BrickColor.new("Sand red")
wait(0.15)
until fTrouble == false
Indicators.Trouble.BrickColor = BrickColor.new("New Yeller")
SetLcd("System OK, "..T.." Trouble, Press Reset to clear",2)
end))
end

6 comments
do you want me to post the full script its only a snip of the script
I would rather you explain an understandable question and what you have attempted to do so far, and post all the relevant portions of the full script.
im trying to set up a Fire Alarm Panel So that If it Detects that the Genorator Is Off It Beeps And Sets The LCD to AC power Trouble
What does "detect generator is off" mean?
if i turn the power genorator off and the value of power in the genorator =false then trigger the Ac Trouble Alarm
here is an example video of wha i mean https://youtu.be/B3DooEh4ero?t=4m45s