it wont recolor the CompLights after the value became true (that happend with another script and I tested it, that worked perfect) can someone help me?
System = game.Workspace.System
AlertV = System.AlertV
if AlertV.Value == true then
for i, v in pairs(game.Workspace:GetChildren()) do
if v.Name == 'CompLight' then
v.BrickColor = BrickColor.new('Really red')
end
end
while true do
Current = game.Workspace.System.Temperature
CurrentV = game.Workspace.System.Temperature.Value
SysON = game.Workspace.System.SysON
function NewText()
game.Workspace.MasterScreen.MasterScreen.Gui.Frame.Temp.Text = ""..CurrentV.." C"
end
NewText()
if SysON.Value == true then
wait(5)
Current.Value = Current.Value + 2
end
NewText()
if Current.Value == 1200 then
game.Workspace.System.AlertV.Value = true
end
end

7 comments
I'm gonna test this now!
it didn't work, after the value AlertV became true nothing happend at the lights... it are like 40 lights btw
That's odd, when I tested it out, the script ran just fine... Have you tried deleting and re-inserting the script into Workspace?
not yet, I will try that
it didn't work... I added the script that changes the value also, but that just works...
oh it worked!
Great! If you found my answer helpful, you can accept the answer and upvote.