Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can someone help me fix this script, Im trying to make a SurfaceGUI control a global alarm system?

This is for a Star Trek themed Alert system


d=script.Parent

if     _G.BlueAlertactval.Value == true then

for i = 1, 10 do
      d.BrickColor = BrickColor.new"Really blue"
      d.PointLight1.Enabled = true
      d.PointLight2.Enabled = false
      d.PointLight3.Enabled = false
      d.PointLight4.Enabled = false
      d.RedAlert:Stop()
      d.YellowAlert:Stop()
      d.BlueAlert:Play()
      d.IntruderAlert:Stop()
end
elseif
    _G.BlueAlertactval.Value == false then
    for i = 1, 10 do
    d.BrickColor = BrickColor.new"Medium stone grey"
      d.PointLight1.Enabled = false
      d.PointLight2.Enabled = false
      d.PointLight3.Enabled = false
      d.PointLight4.Enabled = false
      d.RedAlert:Stop()
      d.YellowAlert:Stop()
      d.BlueAlert:Stop()
      d.IntruderAlert:Stop()
end
end

1 answer

✓ Accepted answer

That should work fine, assuming all those children you index are correct. Of coarse, it will only run once. Any output?

This discussion is preserved as it was. New answers, comments, and votes are closed.