ok so i wanted to use unity particle system but when i change color it becomes pin,what should i do?

ParticleSystem.MainModule settings = GetComponent().main;
settings.startColor = new ParticleSystem.MinMaxGradient( yourColor );

You probably changed the wrong setting. Double check what you actually changed.