|
| 02 Apr 2017 05:14 PM |
| not just the ones directly in workspace but all of them, including the ones in subgroups |
|
|
| Report Abuse |
|
|
|
| 02 Apr 2017 05:16 PM |
local lights = {}
local function recursion(ancestor) for _, object in pairs(ancestor:GetChildren()) do if object:IsA("PointLight") then lights[#lights + 1] = object end recursion(object) end end
|
|
|
| Report Abuse |
|
|
|
| 02 Apr 2017 05:19 PM |
thanks i dont know how you did it, but thanks
|
|
|
| Report Abuse |
|
|
|
| 02 Apr 2017 06:18 PM |
| he searches the child of each object for a pointlight |
|
|
| Report Abuse |
|
|