Try it in your browserpreview Source

Require at TopLuau✎

Requires a module by its specifier, as a top-level local below the GetService calls. Pure: requiring the same module twice reuses one local.

Pending review

Require at Top@lune/fsModuleAs
  • the language itself, so it works in Roblox and in Lune
  • pure — no execution pins, wire it anywhere

Inputs

  • Module:string= "@lune/fs"
    What goes inside require(...). A prefix is required -- `@` for an alias, `./` or `../` for a path. An unprefixed path is an error in Luau itself, not a fallback.
  • As:string= ""
    Name for the generated local. Defaults to the last part of the specifier.

Outputs

  • exports:any

What it compiles to

Info

This node opens a block, so an example without a body inside it would show less than it hid.

Not reviewed yet