My goal is to make blinking indicators that change material with a short intermission at the same time. So far I opted using the GetChildren() method, however, while it does change the material once, it doesn't return to the former material as stated in the script. If I use the in pairs loop, the parts don't change material at the same time, but instead they change material individually!
I have tried many solutions already, can you show me the ropes? Script:
local LightPart = script.Parent:GetChildren()
while true do
LightPart.Material = "Neon"
wait(1)
LightPart.Material = "SmoothPlastic"
end

2 comments
Im pretty sure you have to use the following code: LightPart.Material = Material.new("Neon"), I don't know for sure though because I've never wanted to change a part's material.
Material.new?? O.O yeah no