Hello, thanks for reading.
Error: 17:27:14.449 - Workspace.Meltdown Detector:63: 'end' expected (to close 'function' at line 6) near ''
I am having trouble with GetChildren while getting to the destination.
So, this is part of my script
local mainframelights = workspace.MainframeLights:GetChildren()
for i = 1, #mainframelights do
mainframelights.Light.PointLight[i].Color = Color3.new(255, 0, 0)
end
And this is my module workspace:
Workspace
MainframeLights (Module)
Light (Module)
Light (Part)
PointLight (PointLight)
Light (Module)
Light (Part)
PointLight (PointLight)
Light (Module)
Light (Part)
PointLight (PointLight)
Light (Module)
Light (Part)
PointLight (PointLight)
Light (Module)
Light (Part)
PointLight (PointLight)
Light (Module)
Light (Part)
PointLight (PointLight)
Thanks if you helped! :)

1 comment
Thanks :)