Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do I Make Base monitor screens changing to the security status of base ?

Asked by
turf23 0
9 years ago

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?

1 answer

Log in to vote
0
Answered by 9 years ago

Add in a boolean value.

local a = Instance.new("BoolValue", game.Workspace.Monitor) --Assuming that is the correct name
a.Value = true
a.Value = not a.Value
function cpumonitor()
    if a.Value == true 
        then a.Decal.Texture = "Place the decal for the on alarm id here" 
        else a.Decal.Texture = "Place the decal for the off alarm id here"
    end
end
game.Workspace.AlarmButton.ClickDetector.MouseClick:connect(cpumonitor)

THIS MIGHT NOT WORK CONSIDERING IM NOT A MLG SCRIPTER

0
thanks turf23 0 — 9y
Ad

Answer this question