Thread:script
Returns the script owning this thread.
Usage
thread:script()
Returns
| Name | Type | Description |
|---|---|---|
script | Script | Script owning this thread. |
Examples
```lua
local script = crystal.Script:new();
script:run_thread(function(self)
assert(self:script() == script);
end);