local m = Instance.new("Hint", game.Workspace)
m.Text = "Main Computer Offline!"
m.Name = "Offline"
game.Workspace.Gate.PowerOutage.PowerOutageSound:play()
game.Lighting.TimeOfDay = 0
game.Lighting.Brightness = 0
game.Lighting.Ambient = Color3.new (0, 0, 0)
wait(3)
m:remove()
This script is disabled and then another script enables it mid-game. This works perfectly fine in testing mode, but in a server it does not. filtering is disabled, and the only part of the script that doesn't work is the parts that change the lighting.. What's wrong with it? The output window doesn't bring up any errors..
Can anybody help me?

6 comments
Look in the guides section of SC and read the article about your problem
yo boi got a virus
where is the location of the script that enables it and is this a localscript or a script?
The script that enables it is in the workspace, and its not local
Try adding a WaitForChild in your other script that enables this one. Show me the other script so I know where you can put a WaitForChild.
script.AnnouncementsSafe:Play() wait(4) script.ReactorSafe2:Play() wait(6) script.Alarmy:play() wait(20) script.music1:play() wait(3) script.Beginning:play() wait(20) script.emgevac:Play() wait(18) script.emgevac:Play() wait(15) script.explosionimminent:Play() wait(7) script.emgevac:Play() wait(20) wait(2) script.actionmusic:Play() wait(3) script.firemergency:Play() wait(10) script.emergencypower: