can someone help me with this he can't understand on attack
code_language.skript:
on bed enter:
on attack:
attacker is holding a sword
victim is sleeping
increase the damage by 10000