Change camera script at runtime - Help

Hello everyone, I need my camera to have different behaviors, at one point it is an orbital camera, but when I press a button, I need to change the script that controls it, and that it becomes an animated camera, or some other functionality. Could you give me advice on how to do it? Thank you