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 9 years ago

I Think have something wrong, something is missing?

01local light = script.Parent.SpotLight
02 
03while true do
04light.Brightness = 19
05Workspace.Lamp.LampLight.Material = "Neon"
06Workspace.Lamp.LampLight.Particles.Enabled = true
07Workspace.Lamp.Particles1.Particles2.Enabled = true
08wait(8)
09light.Brightness = 0
10Workspace.Lamp.LampLight.Material = "Marble"
11wait(0)
12light.Brightness = 19
13Workspace.Lamp.LampLight.Material = "Neon"
14wait(0)
15light.Brightness = 0
View all 39 lines...
0
Please rephrase your question. And tell us the intent of this script. DragonODeath 50 — 9y
0
Its a flashing Light i updated the script 12345gabriel12345 15 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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

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

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

01local light = script.Parent.SpotLight
02 
03while true do
04light.Brightness = 19
05Workspace.Lamp.LampLight.Material = "Neon"
06Workspace.Lamp.LampLight.Particles.Enabled = true
07Workspace.Lamp.Particles1.Particles2.Enabled = true
08wait(8)
09light.Brightness = 0
10Workspace.Lamp.LampLight.Material = "Marble"
11wait(0)
12light.Brightness = 19
13Workspace.Lamp.LampLight.Material = "Neon"
14wait(0)
15light.Brightness = 0
View all 40 lines...
Ad

Answer this question