Skip to content

Service · inherits Instance

SharedTableRegistry

Official docs ↗

Provides a global registry of named SharedTable objects.

About SharedTableRegistry

Provides a global registry of named SharedTable objects. It can be used to store SharedTable objects that are used by multiple scripts.

Methods 2

  • GetSharedTable(name: string) → SharedTableGets the registered SharedTable with the specified name.

    Gets the registered SharedTable with the specified name. If no SharedTable with that name exists, a new SharedTable is created with that name and is returned.

  • SetSharedTable(name: string, st: SharedTable?) → ()Registers the provided SharedTable with the specified name.

    Registers the provided SharedTable with the specified name. If the provided SharedTable is nil, any existing SharedTable with the specified name is unregistered.

SharedTableRegistry also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.