Does KillZ work on the X and Y axis too ..?

I found what works but don’t understand why it works LOL