So in my game i just started working on the enemy AI im doing the slime monsters first so i been having this problem where, everytime the system spawns a new slime object they dont follow right behaviors for example i have a instance thats already on the map and it follows all the states correctly (walk,attack,hurt,death) but the slimes created by the system dont they will only follow me around the map and when they get close they will stop and wont play the attack and on death they get stuck in idle. I was also making these enemies form this tutorial https://www.youtube.com/watch?v=ifhkZZroESQ&t=236s