How to set a target to a prefab after spawned?

So i cant make my prefabs to follow the player, they only move toward the initial player position

You can use a number of ways. I’d recommend that you check out some general Unity tutorials.
For example, you can mark the player with a tag and then use Unity - Scripting API: GameObject.FindWithTag

I tried to do that but i dont know where, and also i used Using Pathfinding; but i couldnt find the aidestinationsetter to set the new target