Using local coordinates on a parent object.

How would I use local coordinates on the root object? Like when I change the little node at the top left from ‘Global’ to ‘Local’, and I see the axis pointer using my local coordinates. I would like to manipulate it like that. Thanks.

I used transform.InverseTransformPoint in order to convert my world coordinates to local, and when doing this I had to remember to reverse it by using transform.TransformPoint.