I Think have something wrong, something is missing?
local light = script.Parent.SpotLight
while true do
light.Brightness = 19
Workspace.Lamp.LampLight.Material = "Neon"
Workspace.Lamp.LampLight.Particles.Enabled = true
Workspace.Lamp.Particles1.Particles2.Enabled = true
wait(8)
light.Brightness = 0
Workspace.Lamp.LampLight.Material = "Marble"
wait(0)
light.Brightness = 19
Workspace.Lamp.LampLight.Material = "Neon"
wait(0)
light.Brightness = 0
Workspace.Lamp.LampLight.Material = "Marble"
wait(0)
light.Brightness = 19
Workspace.Lamp.LampLight.Material = "Neon"
wait(0)
light.Brightness = 19
Workspace.Lamp.LampLight.Material = "Neon"
wait(8)
light.Brightness = 0
Workspace.Lamp.LampLight.Material = "Marble"
wait(0)
light.Brightness = 19
Workspace.Lamp.LampLight.Material = "Neon"
wait(0)
light.Brightness = 0
Workspace.Lamp.LampLight.Material = "Marble"
wait(0)
light.Brightness = 19
Workspace.Lamp.LampLight.Material = "Neon"
wait(0)
light.Brightness = 0
Workspace.Lamp.LampLight.Material = "Marble"
Workspace.Lamp.LampLight.Particles.transparency = 1
wait(12)

2 comments
Please rephrase your question. And tell us the intent of this script.
Its a flashing Light i updated the script