About 307,000 results
Open links in new tab
  1. Intro to module scripts | Documentation - Roblox Creator Hub

    A better way to organize and reuse code is with module scripts, a unique type of script that stores a set of functions and variables designed to meet a shared purpose, like managing player money or enemies. Code within module scripts can be used by other scripts.

    Missing:

    • Roblox Studio

    Must include:

  2. ModuleScript | Documentation - Roblox Creator Hub

    ModuleScripts run once and only once per Luau environment and return the exact same value for subsequent calls to require (). ModuleScripts are essential objects for adhering to the "Don't Repeat Yourself" (DRY) principle, allowing you to write a function only once and use it …

  3. Intro to ModuleScripts and how you can use them! (BEGINNER ... - Roblox

    Sep 11, 2021 · Firstly, a ModuleScript can communicate both to the Server and Client, this can be extremely effective. You can use a ModuleScript for many different things, storing tables, creating frameworks, etc… So let’s get into it.

  4. Basic ModuleScript Tutorial for Beginners - Roblox

    May 4, 2020 · In this tutorial, I’ll be covering how to use these scripts. This is what a ModuleScript looks like when you create one in Studio. Let’s create a basic function. If you run this code, nothing will happen because it’s a function and it needs to be called before it will do anything.

    Missing:

    • Roblox Studio

    Must include:

  5. How to use module scripts! - Community Tutorials - Roblox

    Feb 22, 2025 · So what are module scripts you may ask? well, module scripts contain functions that can be accessed from any script in your game as long as you use require(location of script). this can be very useful for making Framework for your game!

    Missing:

    • Roblox Studio

    Must include:

  6. How to Use ModuleScripts in Roblox Studio - DevForum

    Feb 15, 2025 · Today I’ll show you how to effectively use ModuleScripts in your Roblox games. This tutorial is designed to be straightforward and practical. What are ModuleScripts? ModuleScripts are special scripts that help us organize and reuse code across our games. Think of them as code containers that we can access from anywhere in our game. 1.

  7. Reuse code | Documentation - Roblox Creator Hub

    In Roblox Studio, add a module script to ReplicatedStorage and rename it to PickupManager. Each ModuleScript starts with the following code: This code creates an empty Luau table and returns it to any script that requires the module script.

  8. Server VS. Client VS. Module Scripts; What's the Difference ... - Roblox

    Apr 12, 2025 · As I was starting out scripting, I was extremely confused with all of the different types of scripts, but they actually have very important differences! This tutorial goes in-depth about all the different types of scripts & other info that may be very useful! Whether you are new, experienced, or looking to re-sharpen up your skills, this tutorial is for you! 💡 <details><summary>Client ...

    Missing:

    • Roblox Studio

    Must include:

  9. Organizing code | Documentation - Roblox Creator Hub

    Understand the logic behind module scripts, as well as how to code a module script and access it in other scripts. Be able to identify patterns of abstraction and algorithms in computer science. Have an understanding of functions, events, and if/then statements.

    Missing:

    • Roblox Studio

    Must include:

  10. Developer modules | Documentation - Roblox Creator Hub

    Developer modules let you easily add powerful social features to your experiences. Each module is designed to work out of the box, so the moment you press play it will simply work. If this isn't your style, you can configure each module to work in different ways.

    Missing:

    • Roblox Studio

    Must include:

  11. Some results have been removed