I have two problems:
-My projectiles won't deploy to the blinking cube, they just stay at that location.
-My enemies only fly to those prefabs without being destroyed
https://files.catbox.moe/rp067a.mp4
here is the code for the projectile
https://pastebin.com/05SJpbnu
full code for player:
full code for enemy: