Cannot destroy actor

My code literally like this

            this.gameObject.destroy;
        }```
The class is extends Behavior, and I add it as component, so I need to destroy actor that is on scene, with component that includes that code

[Original Post on Discord](https://discord.com/channels/717429793926283276/1173592776915566612)

*by user 697872771497328640*

Hey :wave:
Destroy is a function, you need to add () after the function name in order to call it.

Change your code to this.gameObject.destroy()

Ahh, thank you, now I feel dumb :sweat_smile::joy::joy:

by user 697872771497328640

No worries :slight_smile: