I was trying to make something that allows the player to froze a skeleton when they look at it. This is the skript that I have for now. Unfortunately, when I reload the skript, it always says that "there's no living entity in a periodical event". I have no idea how to fix that, do I need to loop the skeleton as well?? If so how should i do that.
every tick in "world":
loop all players:
if loop-player's targeted skeleton is set:
apply slowness 255 to targeted skeleton for 1 second
every tick in "world":
loop all players:
if loop-player's targeted skeleton is set:
apply slowness 255 to targeted skeleton for 1 second