object dont destroy

"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."

what's going on I did everything according to the tutorial

1 Answer

1

As the error says, you're trying to destroy the transform

If you add .gameObject onto the end of whatever you're trying to destroy, that should fix it