> For the complete documentation index, see [llms.txt](https://docs.novarietygames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novarietygames.com/websitecreator/luascript/settimeout.md).

# setTimeout

setTimeout is just LUA native `delay` expect it does not yield the current running thread

setTimeout takes **2** arguments, the function and numeric timeout in seconds

<pre class="language-lua"><code class="lang-lua"><strong>local Age = 18
</strong><strong>print("You are " .. Age .. " years old!")
</strong>setTimeout(function()
    Age = 23
    print("You are now " .. Age .. " years old!")
end, 5)
print("You are still " .. Age .. " years old!")
</code></pre>
