I want to develop a monitor system on my base that when i activate a alarm the decal changes on the monitors to the emergency notice and when i deactivate it it returns to the original decal can anyone help me figure out how to make this?
Add in a boolean value.
01 | local a = Instance.new( "BoolValue" , game.Workspace.Monitor) --Assuming that is the correct name |
02 | a.Value = true |
03 | a.Value = not a.Value |
04 | function cpumonitor() |
05 | if a.Value = = true |
06 | then a.Decal.Texture = "Place the decal for the on alarm id here" |
07 | else a.Decal.Texture = "Place the decal for the off alarm id here" |
08 | end |
09 | end |
10 | game.Workspace.AlarmButton.ClickDetector.MouseClick:connect(cpumonitor) |
THIS MIGHT NOT WORK CONSIDERING IM NOT A MLG SCRIPTER