ModuleScripts & Require
Last updated:
How to share code between scripts using ModuleScripts.
Study Roblox Architecture inside Luablox's guided Luau theory path for Roblox developers.
Learn how to share code and architect clean, modular Roblox systems using ModuleScripts and require().
Related pages
- Previous lesson: Client-Server Model
- Next lesson: RBXScriptSignal — Connect & Disconnect
- 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