Hello, Someone send me a code that fixed this thing but when i kill the same guy multiple times its bugy (The else works) can someone fix it or send me new one please.
code_language.skript:
on death:
victim is a player
if {last.%victim%} is set:
set the death message to "&c%victim% &was killed by &c%{last.%victim%}%!"
set lore of attacker's tool to "%lore of attacker's tool%||&e%attacker% &bkilled &e%name of victim%!"
delete {last.%victim%}
else:
set the death message to "&c%victim% &6died"
on damage:
victim is a player
set {last.%victim%} to attacker
set {test.last.%victim%} to attacker
wait 8 seconds
{last.%victim%} is equal to {test.last.%victim%}
delete {last.%victim%}
delete {test.last.%victim%}