Self explanatory.
Self explanatory.
Cleanup binds to the destruction of a scope -- you can't use it without a scope.
Cleanup takes the following types without trying to find a destructor:
- RbxScriptConnection
- Instance
- Thread
- Function
If it isn't one of these, it'll look for the following methods:
- destroy
- Destroy
- disconnect
- Disconnect
If it cannot find any of these, the error cleanup_unknown_destructor will be called.
Self explanatory.
Self explanatory.