So after a lot of testing and what not, I have come to realize that my damage block system works, but not at the fast pace I am looking for.
Furthermore, I am going to switch to run my damage system all via CLIENTSIDE.
How would I trigger a clientside function in a weapon of another player?
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code, key){
if (key == "s"){
if (player.x in |this.x-2, this.x + 1| && player.y in |this.y-1, this.y + 3|) {
//Trigger Clientside function in other player's "System/Health" weapon
}
}
}
Can anyone fill in that line for me please?

It's also something I'd like to learn for the future.
Also, I'm not sure if my check is right to find players in front. If incorrect, please assist me there too.