Add an invisible sprite with Tween behavior, or use any existing static object. The object doesn't matter, as long as it exists on the layout and has Tween behavior.
Run "Tween (value)" action.
In "Tween Is Playing" event set layer elevation to Sprite.Tween.Value
I did it the way you taught me, I noticed that objects on the layer affected by the change in Z elevation maintain their position at 0, without keeping track of the value of the layer. Is there a way for each object on the layer to update its Z elevation without me having to make the change one by one or have to create multiple families?