Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script works in testing mode, but not in a real server???? Help please

Asked by 6 years ago
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?

0
Look in the guides section of SC and read the article about your problem lukeb50 631 — 6y
0
yo boi got a virus goldstorm950 65 — 6y
0
where is the location of the script that enables it and is this a localscript or a script? 4PlayerGamingRoblox 38 — 6y
0
The script that enables it is in the workspace, and its not local Jonathox 4 — 6y
View all comments (2 more)
0
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. TheOnlySmarts 233 — 6y
0
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: Jonathox 4 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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
Ad

Answer this question