> 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.md).

# LUAScript

{% hint style="info" %}
Basic LUA and Some Web Development Knowledge required
{% endhint %}

Let's take a look at the script shown in [HTML Interpreter](/websitecreator/html.md)

```lua
delay(1)
local name = window.input("What is your name?","My name is ...")
local elm = document.createNode("p",{
style="color:red"
},string.format("Welcome %s",name))
document.querySelector("body").appendChild(elm)
elm.style="color:blue"
print("Updating")
--document.innerHTML ="<p>CHANGE INNER HTML</p>"
elm.style="color:red"
--elm.innerText = "Test!"
print("Done!")
```

LUAScript uses native LUA Functions but also takes some custom functions built in

LUAScript Functions

<table><thead><tr><th>Function</th><th>Documentation</th><th data-hidden></th></tr></thead><tbody><tr><td>delay</td><td><a data-mention href="/pages/NEHhyYTbM0ONnkGnlxE8">/pages/NEHhyYTbM0ONnkGnlxE8</a></td><td></td></tr><tr><td>Document Elements</td><td><a data-mention href="/pages/PWBRziIecaq7mVveeAD0">/pages/PWBRziIecaq7mVveeAD0</a></td><td></td></tr><tr><td></td><td></td><td></td></tr></tbody></table>
