Log inGet started

library

The library namespace — the engine's Luau API reference for library.

The library namespace — 3 functions.

globals/library/has

globals/library/has(path: string) -> boolean

Check if a library asset exists at the given path.

globals/library/import

globals/library/import(namespace: string, worldName: string)

Import a saved world as a library. The world directory at data/worlds/<worldName>/ is loaded and registered under the given namespace. After import, all files in the world are accessible via require('@namespace/path') and visible at /zero/source/libs/@namespace/.

globals/library/list

globals/library/list(assetType: string?) -> { LibraryAsset }

List all available library assets. Optionally filter by asset type — call asset.categories() for the live set.

  • api
  • reference