How to stop a camera who is animated by a rotating component in terms of script


That one is for the Alarm system that i had done to stop the triggers and spotlights in general

In terms of dedicated camera script, i want to know if there is one that can looks like what you suggested or not, so that i can use it to stop that kind of animations (Get Component by Class)?