canaryThese pages document the canary: an unreleased build. What they describe may not be in the version you have, and may change before it is.The stable build
Try it in your browsercanary Source

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

Require ModuleReplicated…InModules.…PathAs
  • needs the Roblox engine — its datatypes, its DataModel or its scheduler
  • pure — no execution pins, wire it anywhere

Inputs

  • In:string= "ReplicatedStorage"from a list
    Where 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

Script StartRequire ModuleReplicated…InShared.G…PathAsGet FieldObjectgreetFieldPrintValue
The graph this output was compiled from.
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