Try it in your browserpreview Source

Require (Dynamic)Luau✎

Requires a module reached by a wire, for cases a fixed path cannot express.

Pending review

Require (Dynamic)ExportsModule
  • the language itself, so it works in Roblox and in Lune
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • in:execution
  • Module:anymust be wired

Outputs

  • then:execution
  • Exports:any

What it compiles to

luau
require(module)

Not reviewed yet