> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/global-functions/get.md).

# get

```lua
function test() 
    wait(3);
    local myValue = get('testValue'); --gets the global object/variable testValue from the main script
    log(myValue);
end

return function()
    testValue = 10;
    async('test');
    
    wait(10);
    --it will print testValue before finished
    log('finished');
end
```
