Skip to content

Datastore

Datastore is an object that represent datastore connection.

Not newable

This object cannot be created by scripts using Instance.New().

Properties

Key : string

The key identifying this Datastore connection.

Methods

GetAsync → any

Parameters: key [ string ]

Retrieves a value from the datastore asynchronously using the specified key.

SetAsync → nil

Parameters

key [ string ]

value [ any ]

Stores a value in the datastore asynchronously using the specified key.

RemoveAsync → nil

Parameters: key [ string ]

Removes a value from the datastore asynchronously using the specified key.

Events

Loaded

Parameters: ``

Fires when this datastore has been loaded