Can anybody help, I don't know what's happened. Yesterday and long time ago it was functioning.
Error: 10:37:30.072 - Workspace.Part.PointLight.Script:10: Expected 'end' (to close 'then' at line 2), got <eof>
01 | if workspace.Meltdown.Alarm.Playing = = true |
02 | then |
03 |
04 | print ( "PointLight Flash 1 Enabled!" ) |
05 | while true do |
06 | script.Parent.Color = Color 3. new ( 255 , 0 , 0 ) |
07 | wait( 0.2 ) |
08 | script.Parent.Color = Color 3. new ( 255 , 255 , 255 ) |
09 |
10 | end |
Hello there! You just missed an end for the while loop to close!
01 | if workspace.Meltdown.Alarm.Playing = = true then |
02 |
03 | print ( "PointLight Flash 1 Enabled!" ) |
04 | while true do |
05 | script.Parent.Color = Color 3. new ( 255 , 0 , 0 ) |
06 | wait( 0.2 ) |
07 | script.Parent.Color = Color 3. new ( 255 , 255 , 255 ) |
08 | end |
09 |
10 | end |
Make sure to up-vote and select this as your answer if it helped!
Hi coolgamingguyYT!
Try something like this:
1 | if workspace.Meltdown.Alarm.Playing = = true then |
2 | print ( "Pointlight Flash 1 Enabled!" ) |
3 | script.Parent.Color = Color 3. new( 255 , 0 , 0 ) |
4 | wait( 0.02 ) |
5 | script.Parent.Color = Color 3. new( 255 , 255 , 255 ) |
6 | end |
Hope I helped!