Target ai and prefab

I set my car target ai to an object and then turned it into a prefab. I then made a trigger to spawn that car that i made a prefab. But when i went into play mode it spawned the car but it didn’t go anywhere. So while in playmode i realised that the car had no target…I then checked the prefab and i didn’t also didn’t have a target…

Are you modifying the target anywhere? The most likely answer is you are modifying the target via script. Again without the script we can’t help much.

The other possibility is you have tried to assign a GameObject from the scene to a field in a prefab. This is not allowed, as prefabs can be created in any scene, so there is no guarantee the object will exist.