Why is my script not working? (again)

my script is not working, it should destroy the last triggering player, create another player and set it’s max value of kills to 10 when kills reach 5 but i get a report saying that it cant destroy last triggering player


i tried changing the script for it to increase the hp to 180, increase regeneration speed to 1, increase max value of kills to 10 and give a item to the player when the kills reach 5 but nothing happens expect the max value of kills increasing to 10

give new item to unit action set wrong unit. Its “player’s currently selected unit” not “last triggering entity”
like this

idk why it looks the same but doesnt work
have no clue why health regeneration rate doesnt too
you can check this here here https://www.modd.io/play/x5B7gb7va

1 Like

the hp doesn’t work, my hp is still at 100 and the regeneration is slow

1 Like

does it not work because health is a unit attribute?

1 Like

Health is a unit attribute.

how do i edit a unit attribute?

1 Like

its the same thing
if its not work, you can add passive bonus on the sword as replace
still have no clue why health regeneration, tryed to create script to replace but server kept crash

1 Like

i think health regeneration doesn’t work because health is a unit attribute

1 Like