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?
Heres the code that activates the first code i posted:
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:Play() wait(7) script.coreexplosionimminent:Play() wait(9) wait(11) script.firemergency:Play() wait(17) script.fourminutes:Play() wait(1) wait(3) script.nuclearalarm:Play() script.actionmusic:Stop() script.matrix1:Play() wait(15) local m = Instance.new("Hint", game.Workspace) m.Text = "Evacuate Starbase - IMMEDIATELY! " m.Name = "Evac" wait(11) wait(4.2) m:remove() -- POWER OUTAGE ACTIVATED BELOW-- game.Workspace.Gate.PowerOutage.Disabled = false local m = Instance.new("Hint", game.Workspace) m.Text = "MAIN COMPUTER OFFLINE! - NO POWER" m.Name = "OUTAGE" wait(15) m:remove() local m = Instance.new("Hint", game.Workspace) m.Text = "Evacuate Starbase - IMMEDIATELY ! " m.Name = "Evac" wait(19) wait(39) m:Remove() script.timerdestroyed:Play() wait(9) script.selfdestruct:Play() wait(8) script.alarmmain2:Play() local msg = Instance.new("Message") msg.Parent = game.Workspace msg.Name = 'HelloBrick' msg.Text = "Warning - Computer Self Destruct Initiated" wait(5) msg.Text = "Have a wonderful day :)" wait(3) game.Workspace.HelloBrick:Remove() script.matrix1:Stop() script.matrix2:Play() script.Countdown.Disabled = false