you have to stop when there's a green light

You have to stop when there's a green light. - I think you mean that I have to stop when there's a red light.
Tienes que pararte cuando hay una luz verde. - Creo que quieres decir que tengo que parar cuando hay una luz roja.
Palabra del día
la guarida