Why do my local scripts not work when the players character is changed?

So, I have a local script inside of a character that the players character is set to when they click on a GUI, everything works except the animations, but the animations worked before I changed the players character, what’s going on?

When you change the character the local script inside the original character is being deleted, just put the local script in starter player scripts instead

1 Like

I checked though and the script was still there.

Because it gets deleted and replaced by a new script with the same source