hello, devforum. i was modifying and adding new stuff into a random concert light system (dont ask why) and im kind of stuck trying to add another strobe function.
local Epic = script.Parent
function onClick()
local led = game.Workspace:GetChildren("LED1")
led = led[math.random(1, #led)]
spawn(function()
while true do
led.LED.Transparency = 0
led.LED.SurfaceLight.Brightness = 1
led.LED.Beam.Transparency = NumberSequence.new(0.5, 0.5)
wait(0.002)
led.LED.Transparency = 1
led.LED.SurfaceLight.Brightness = 0
led.LED.Beam.Transparency = NumberSequence.new(1, 1)
wait(0.002)
end
end)
end
Epic.MouseButton1Click:connect(onClick)
the error:
15:28:59.347 LED is not a valid member of Model "Workspace.Model"