Defining & Calling Functions
Last updated:
Function syntax, multiple return values, and default argument patterns.
Study Functions inside Luablox's guided Luau theory path for Roblox developers.
Learn scope, local closures, varargs, and multiple returns in Luau to write reusable Roblox code.
Related pages
- Previous lesson: Generic For: pairs & ipairs
- Next lesson: Scope & Closures
- Browse Luau theory topics
- Practice Luau coding problems
- Review Luablox access options
- Variables & Data Types
- Operators & Expressions
- Strings in Depth
- Conditionals
- Numeric For & While Loops
- Generic For: pairs & ipairs
- Defining & Calling Functions
- Scope & Closures
- Varargs & Multiple Returns
- Arrays (Sequence Tables)
- Dictionaries (Key-Value Tables)
- Metatables & OOP
- The DataModel & Instance Hierarchy
- Client-Server Model
- ModuleScripts & Require
- RBXScriptSignal — Connect & Disconnect
- RemoteEvents & RemoteFunctions
- Type Annotations
- Best Practices & Patterns