Can Z-Targeting be implemented into a Roblox Game?

Hi! I am creating a dungeon crawler type game, and one of the other devs brought up if z-targeting could be added. I was wondering if anyone had a solution or some advice as to how to add this feature.

Thanks!