How would i make it so when a person makes a npc appear only they can attack it like when i clcik barrows coffin and like karils comes out i dont want be able to attack karils unless they made it come out. and i need no how make it so that karils would attack the player who made it come out and not a random player.

if somone could at least give a hint... or somthing to help ive tried so many things nothing works for me.