Require ModuleRoblox✎
Requires a module by path, as a top-level local. Pure: no execution wire, and requiring the same module twice reuses one local.
Pending review
- needs the Roblox engine — its datatypes, its DataModel or its scheduler
- pure — no execution pins, wire it anywhere
Inputs
- In:string=
"ReplicatedStorage"from a listWhere the path starts: a service, or game / script / workspace. Offers 47 values to pick from, and takes anything else typed in. - Path:string=
"Modules.Combat"Dotted path to the ModuleScript. - As:string=
""Name for the generated local. Defaults to the last path segment.
Outputs
- exports:any
What it compiles to
luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Greeter = require(ReplicatedStorage.Shared.Greeter) print(Greeter.greet)
Info
Requires hoist alongside services, and asking twice reuses the one local.
Not reviewed yet