GetPos, axis
GetPos, Z

Returns the current world position of the object on the selected axis (X, Y, or Z) in float.