01 | local light = script.Parent.PointLight |
02 |
03 | while true do |
04 | wait(. 5 ) |
05 | script.Parent.BrickColor = BrickColor.new( "Really red" ) |
06 | wait(. 001 ) |
07 | light.Color = Color 3. new( 255 / 255 , 0 / 255 , 0 / 255 ) |
08 | wait(. 5 ) |
09 | script.Parent.BrickColor = BrickColor.new( "Lime green" ) |
10 | wait(. 001 ) |
11 | light.Color = Color 3. new( 0 / 255 , 255 / 255 , 0 / 255 ) |
12 | wait(. 5 ) |
13 | end |
"try
1 | script.Parent:WaitForChild( "PointLight" ) |
if it still has that error, then PointLight is not a child of script.Parent" ~Answered by Azarth in the comments