I tried this but it didn't work. How would I go through every model and part to find all the Pointlights and SpotLights and disable them? I know it's possible and I can't just group the Pointlights and use that model because they are all in various models throughout the game and would be VERY VERY time consuming to find them all. If you could help It would be much appreciated.
How would I enhance this?
for i, v in pairs(game.Workspace:GetChildren())do
if v:FindFirstChild("PointLight") then
v.PointLight.Enabled = false
end
end

1 comment
Thanks so much! Now I can get on with what I've been wanting to do for hours! MUCH APPRECIATED!