I'm tryna to make a script where if it detects that a light is missing it turns the brick into plastic and change the color to 0, 0, 0
local Light = script.Parent
local Shine = script.Parent.PointLight
if Light:FindFirstChild("Shine") == nil then
Light.Material = Plastic
Light.Color = 0, 0, 0
end```
I don't know what I did wrong and why it won't work.