# behaviour-detached

> Talos 0.7 · Since 0.6

a `Behaviour` instance's engine members were used on an instance the engine did not construct (`new MyBehaviour()` in a script)

| | |
|---|---|
| Severity | `error` |

## Meaning

a `Behaviour` instance's engine members were used on an instance the engine did not construct (`new MyBehaviour()` in a script)

## Fix

let the engine construct it by exporting the class as the module's default and naming the module in a `script` component
