I tried to make a sphere bulb that turns on and off. The sphere was put under workspace and i inserted a script and a PointLight into it...... Here is the code I had trouble with it says line 6 is the problem...
lightupsphere = script.Parent
--print(lightupsphere)--was used as test
while true do
for i,v in pairs(lightupsphere:getChildren()) do
if(v~=script) then
v.Sphere.PointLight.Enabled = not v.Sphere.PointLight.Enabled
end
end
wait(2)
end
