About 272,000 results
Open links in new tab
  1. How To Use Module Scripts - Community Tutorials - Roblox

    May 13, 2020 · Module Scripts are really useful in Roblox Scripting. They help us to stop writing the same code over and ...

  2. What is a practical use for module scripts? - Roblox

    Dec 12, 2023 · I find many other people using module scripts in their games but I don’t quite see how to use them. I feel like I might be able to ease a lot of parts in my scripts so I was just wondering, how do you use module scripts…

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

    Sep 11, 2021 · I’ll be coding in Visual Studio, you can stay in Roblox Studio as it’ll be the same, however creating a Module you’ll start off with this. On line 1 you’ve your Table, and on the bottom it’s returning that table, if you’re wanting to code anything in a ModuleScript mostly all your code will need to be in-between line 1 and the ...

  4. Basic ModuleScript Tutorial for Beginners - Roblox

    May 4, 2020 · You should check out AlvinBlox’s tutorial instead here! Jump to: Tutorial A bit more advanced stuff Tutorial ModuleScripts are an excellent way to enforce the DRY principle of not repeating yourself. ModuleScripts are often used for storing functions that you need to use across multiple scripts. Now, rather than creating the same function again and …

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

    Feb 22, 2025 · well, module scripts contain functions that can … This tutorial will cover how to use module scripts! this is my first tutorial here, so let me know if I’ve done something wrong.

  6. Module.new () and Module:New () - Scripting Support - Roblox

    Oct 20, 2023 · module:new("hi") -- is the same as module.new(module, "hi") the colon is mainly used in modulescripts and Object-Oriented Programming (OOP) if you want the self variable. the self variable is the table parent of the function

  7. Creating your own simple zone module! - Roblox

    Dec 22, 2023 · Let’s start by creating a module script. It should look like this. local Module = {} return Module You can change the module name to anything you like! Next, we need to set variables.--// Variables local RunService = game:GetService("RunService") local Players = game:GetService("Players") One of the most important things here is the __index ...

  8. Hitbox Service, easily create Accurate Hitboxes using minimal

    Dec 18, 2021 · Are you tired of using .touched hitboxes, constantly not working? Well, Hitbox Service may be the module for you! Download here: Hitbox Service - Roblox As you can see, I made a hitbox which would damage the player Source Code: <details><summary>Source Code</summary>-- biack1st --[[ HELLO!! thank you SO much for downloading this module!!! In order to use this module please look at the devforum ...

  9. Where do you guys store your module scripts? - Roblox

    Sep 26, 2020 · Hey! I’ve heard that some scripters work with a lot of module scripts. But the question is, where do they store them? Like do they just copy-paste the Module-Script Script everytimes there is a new project or something? Do they make a plugin that inserts those module scripts per click? Did you guys create some type of Module Scripts folder in your PC where you copy paste in your ...

  10. ModuleScript and DataStores - Scripting Support - Roblox

    Oct 16, 2019 · local module = {} local playerMap = {} function module.setKey(keyName, value) playerMap[keyName] = value end function module.getKey(key) return playerMap[key] end function module.getKeys() -- iterate through this one with a for loop return playerMap; end return module; You can add keys and set them like this: module.setKey("Player1", { officerWarnings = 0 }) Just some food for thought.

Refresh