for _, child in pairs(workspace.Carlights:GetChildren()) do if child.Name == "PointLight" then child.Enabled = false end end
I get no errors, I want it to disable the pointlight in every part named "CarLights"
Try using ClassName. Fix: (i think)
for _, child in pairs(workspace.Carlights:GetChildren()) do if child.ClassName == "PointLight" then child.Enabled = false end end