My script is suppose to set the transparency to 0 and 1 for all the parts in [light arrow] but it only does 1 random part in the model
game.ReplicatedStorage["Light Settings"]["Left Lights"].OnServerEvent:Connect(function()
local Switch = script.Parent.Switch
local ConLights = script.Parent["Light Arrow"]:WaitForChild(script.Parent["Light Arrow"].LPart, 12)
while Switch.Value == true do
task.wait()
for _, ConLights in ipairs(script.Parent["Light Arrow"]:GetChildren()) do
ConLights.Transparency = 0
wait(1)
ConLights.Transparency = 1
end
end
end)

2 comments
At the same time or one by one? Also you're overwriting ConLights in Line 7, maybe you're trying to edit the ConLights in Line 4
At the same time. on line 7 I thought that is the way to get all the parts in the model [Light Arrow]