Add box collision to the building and:
If you need the transition to be smooth, interpolate the float value on tick / use a timeline instead.
Also, consider inheritance at this point; something like this should probably be in the parent class, you may not want to duplicate the script for 100s of buildings manually.

