ଏକ ପାରମ୍ପରିକ ହେଲୋ ୱାଲ୍ଡ ପ୍ରୋଗ୍ରାମ ନିମ୍ନୋକ୍ତ ପ୍ରକାରରେ ଲେଖା ଯାଇପାରିବ:

print('Hello World!')
Comments use the following syntax, similar to that of Ada, Eiffel, Haskell, SQL and VHDL:

-- A comment in Lua starts with a double-hyphen and runs to the end of the line.

-- Multi-line strings & comments

--[=[ Comments like this can have other --comments nested. ]=]
The factorial function is implemented as a function in this example:

function factorial(n)
end
Metatables
ଫିଚର
କିଛି କୋଡ ଉଦାହରଣ
ଲୁପ୍