Instead of my lights flashing at random intervals, they go on an off in sequence. How come?
local Time = 5
local descendants = script.Parent.Lights:GetDescendants()
if Time == 5 then
repeat
wait(math.random(1,3))
for index, descendant in pairs(descendants) do
if descendant:IsA("PointLight") then
descendant.Brightness = .1
wait(.3)
descendant.Brightness = 1
end
end
Time = Time + 1
until Time == 5
end

1 comment
i dont think that's what he's trying to do