Transform.Parent Not Working

if(health == 0){
Destroy(Transform.parent);
Destroy(gameObject);
}

Only the gameObject itself is being destroyed not the parent. Is the gameObject itself being destroyed first?

Don’t use a capital T. That code won’t even compile.

I’m assuming your actual code doesn’t look like that. Read your Console before you post here.

Can’t destroy Transform component. If
you want to destroy the game object
please call ‘Destroy’ on the game
object instead. Destroying the
transform component is not allowed.