Problem teleporting entity added to a variable to player.

Discussion in 'Skript' started by TheProB, Aug 1, 2020 at 10:45 PM.

  1. Im having problems teleporting a summoned zombie that was added to a variable to the player - here is my skript - pastebin link

    please help
  2. in /reset command you should delete the variables instead of setting them to 0, as 0 is still saved in the database

    you cannot ADD like that, you must use SET
    like, set {_var} to last spawned zombie

    and the every tick you're using is a bad practice, I'd recommend a while loop after spawning of the zombie, while the zombie is alive