Added update animation script code to all scripts