Need help with overlay looping

i was trying to loop like red and blue lights from a police car and it looped but the script didnt move forward it kinda just stuck there, was hoping someone could help me with that :slight_smile:
this is the code i used:

@overlay BLUELIGHT opacity 0% in 0
@overlay BLUELIGHT moves to layer 5
@overlay 5204683645976576_BLUELIGHT shifts to 141 96 in zone 1
@overlay 5204683645976576_BLUELIGHT scales to 0.334 0.334
@overlay REDLIGHT opacity 50% in 2 THEN overlay REDLIGHT opacity 0% in 2
@overlay 5204683645976576_REDLIGHT shifts to 127 70 in zone 1
@overlay 5204683645976576_REDLIGHT scales to 0.370 0.370
@overlay BLUELIGHT opacity 50% in 1 THEN overlay BLUELIGHT opacity 0% in 1
@overlay REDLIGHT opacity 50% in 1 THEN overlay REDLIGHT opacity 0% in 1 THEN overlay BLUELIGHT opacity 50% in 1 THEN overlay BLUELIGHT opacity 0% in 1 loop INFINITE times

Never use the @ sign with an infinite loop. That’s why your scene gets stuck because it can’t continue since it’s stuck in that infinite loop. You must use the & sign.

1 Like

Thank you sm! Should I remove the @ on all the commands or just that last one?

Just edited the last line and it worked! Thank you for the help :))