Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

0

Please rephrase your question. And tell us the intent of this script.

0

Its a flashing Light i updated the script

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.