Help with changing the properties of multiple PointLights

I am attempting to universally change the lighting of all of these PointLights using a single script instead of manually changing them. How would I write this without renaming every single Part?

Here is my explorer menu:
https://gyazo.com/a82e9546b019cfcf6d476710daf8f33f

1 Like

You can use the Collection Service, which gives you the ability to assign a tag to all of those PointLights, and then loop through all of the objects that have that tag (in other words all of the PointLights) using :GetTagged(t) which returns a table with all object that have the same tag t.
Read the link I gave you! And here is more info.

local CollectionService = game:GetService("CollectionService")

for i, v in pairs (CollectionService) do
    --change the property
end
2 Likes