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

Why this part of my script don't is working?

Asked by 8 years ago

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)
0
Please rephrase your question. And tell us the intent of this script. DragonODeath 50 — 8y
0
Its a flashing Light i updated the script 12345gabriel12345 15 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

The problem is that the t transparency is capital so this should work:

Workspace.Lamp.LampLight.Particles.Transparency = 1
wait(12)

Also you are missing an end at the bottom of all your code! So the full script would be:

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)
end
Ad

Answer this question