The script is contained within the ClickDetector. But when you click on the brick containing the ClickDetector, nothing happens. I'm not sure what's wrong. Help?
function onMouseClick()
game.Lighting.Ambient = {0,0,0} game.Workspace.Installation.EmergencyLights.Part.SpotLight.Enabled = true
local h = Instance.new("Hint") h.Parent = game.Workspace h.Text = "Emergency system reboot engaged, please stand by" wait(3)
h.Text = "System reboot beginning" wait(0.2) h.Text = "System reboot beginning ." wait(0.2) h.Text = "System reboot beginning . ." wait(0.2) h.Text = "System reboot beginning . . ." wait(0.2) h.Text = "[| ]" wait(0.5) h.Text = "[|| ]" wait(0.5) h.Text = "[||| ]" wait(0.5) h.Text = "[|||| ]" wait(0.5) h.Text = "[||||| ]" wait(0.5) h.Text = "[|||||| ]" wait(0.5) h.Text = "[||||||| ]" wait(0.5) h.Text = "[|||||||| ]" wait(0.5) h.Text = "[||||||||| ]" wait(0.5) h.Text = "[|||||||||| ]" wait(0.5) h.Text = "[||||||||||| ]" wait(0.5) h.Text = "[|||||||||||| ]" wait(0.5) h.Text = "[||||||||||||| ]" wait(0.5) h.Text = "[|||||||||||||| ]" wait(0.5) h.Text = "[||||||||||||||| ]" wait(0.5) h.Text = "[|||||||||||||||| ]" wait(0.5) h.Text = "[||||||||||||||||| ]" wait(0.5) h.Text = "[|||||||||||||||||| ]" wait(0.5) h.Text = "[||||||||||||||||||| ]" wait(0.5) h.Text = "[|||||||||||||||||||| ]" wait(0.5) h.Text = "[||||||||||||||||||||| ]" wait(0.5) h.Text = "[|||||||||||||||||||||| ]" wait(0.5) h.Text = "[||||||||||||||||||||||| ]" wait(0.5) h.Text = "[||||||||||||||||||||||||]" wait(0.5)
h.Text = "System reboot successful" wait(2) h:Remove()
game.Lighting.Ambient = {300,300,300} game.Workspace.Installation.EmergencyLights.Part.SpotLight.Enabled = false
end
script.Parent.MouseClick:connect(onMouseClick)

1 comment
Please use the Lua code block button to format your code so that it is readable