Basic Guide to Lua
Overview
Comments
-- Single-line comment
local Num1 = 1
--[[
local Num2 = 2
Multi-line comment
]]--
local Num3 = 3Code Execution Order
SomeFunc() -- Error occurs
local function SomeFunc()
print("SomeFunc")
end
SomeFunc() -- Works as intendedVariables
Functions
local and global
Control Statements
if
goto
do
Loops
for
while
repeat
Logical Operators
Tables
Coroutines
Luau In-depth Learning
Luau GuideLast updated