on right click on player:
set {_hitlocation} to location of victim
wait 1 tick
teleport victim to {_hitlocation}
push victim up with force 0
push victim in direction of attacker with force 0
if victim is player:
if attacker is player:
make victim execute command "/malza"
My goal is to make that when a player right-click on another player, make that player execute a command
If anyone can help me, I appreciate it
set {_hitlocation} to location of victim
wait 1 tick
teleport victim to {_hitlocation}
push victim up with force 0
push victim in direction of attacker with force 0
if victim is player:
if attacker is player:
make victim execute command "/malza"
My goal is to make that when a player right-click on another player, make that player execute a command
If anyone can help me, I appreciate it