I’m noticing that you have this script on the top part of the turret. When you run the game in the editor, is this top part of the turret being destroyed while the base remains?
You probably want to put these scripts on the root game object, smallturret.
@Volix OH! I see the problem now. You are using OnTriggerEnter, but under SphereCollider, you have not ticked the Is Trigger box. You’ll need to use OnCollisionEnter instead or tick that trigger box (which will keep it from being able to have any physics interactions).