Any Idea, why slicing removes color?

I have an P1S with AMS and different PLA Filaments loaded.
I use the color function in Bambu Studio to paint the models but after slicing the different color is gone and i have no idea, what happened.
Any Idea how to avoid this?