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
10 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 10 years ago

Add in a boolean value.

01local a = Instance.new("BoolValue", game.Workspace.Monitor) --Assuming that is the correct name
02a.Value = true
03a.Value = not a.Value
04function 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
09end
10game.Workspace.AlarmButton.ClickDetector.MouseClick:connect(cpumonitor)

THIS MIGHT NOT WORK CONSIDERING IM NOT A MLG SCRIPTER

0
thanks turf23 0 — 10y
Ad

Answer this question