But an issue I'm having is the original command block doesn't trigger the kill once you get a certain distance away. I copied the code exactly into this new block to see if the distance was causing the issue, but the new one is giving me an error.
Why doesn't this command work? I have it set on another block and it works fine.