Is it possible to replace the animate script before it runs any code?

For some reason in my game, the animate script that Roblox puts into the characters automatically is throwing an error every time I test it. The animations themselves still work somehow, but I’m trying to change the default running and walking animations to different ones and I haven’t been able to do it, and I think it is because of this error. Is there a way to replace this script with my own modified version so that I can fix any problems?

You’d have to go in Studio, press play, copy the animation script, paste it into CharacterScripts and edit what you wish.