Roblox UtilitiesDevlHub Roblox Documentation

Class

SharedTableRegistry

NotCreatableServiceNotReplicated
Inherits
Instance › Object
Memory category
Instances

Provides a global registry of named SharedTable objects.

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

Methods 2#

GetSharedTableGets the registered SharedTable with the specified name.Safe
SetSharedTableRegisters the provided SharedTable with the specified name.Safe

GetSharedTable(name: string): SharedTable#

Safe

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.

NameTypeDefaultDescription
namestringThe name of the registered SharedTable.
Returns

SetSharedTable(name: string, st: SharedTable?): ()#

Safe

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

NameTypeDefaultDescription
namestringThe name of the registered SharedTable.
stSharedTable?The SharedTable object to register, or nil to unregister any previously registered SharedTable object.
Returns
  • ()

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed