Particles (Legacy) wont render

Hi guys, I am a Unity Noob.

So I was following a tutroial to learn somthing, when the tutorial particle system was outdated compared to unity 4 that uses Particles (Legacy). So I tried to figure it out with the new system. All went well until I made a script that changes colour of the particles.

The problem is that when I change the colours, the particles are no longer visible, Then I also discovered that if I change less then 4 colours (out of 5) the particles are still visibole.

Can you please tell me what I am doing wrong?

Thanks a lot

Java code used:

#pragma strict

public var myColors:Color[];

	function Start () {
		
		var particleAnimator : ParticleAnimator = GetComponent(ParticleAnimator);
		var modifiedColors : Color[] = particleAnimator.colorAnimation;
		modifiedColors = myColors;
		particleAnimator.colorAnimation = modifiedColors;
	}

What is the colors you are using? Is the last value 0? Unity uses RGBA so that last value is alpha, if 0 the color is transparent.