How can i lock my gradient on scaled meshes ?

Here’s one that works just for the Z faces:

344787-ezgifcom-gif-maker1.gif

If you want it to work on all faces, you need to write the other 2 sides. Don’t think you can do it with those world position functions.