We use cookies on this site to enhance your user experience

GlobalDataStore

GlobalDataStore

A GlobalDataStore exposes functions for saving and loading data for the DataStoreService. A GlobalDataStore is returned from a call to the DataStoreService method.

Functions

Name Type Description
Variant

Returns the value of the entry in the DataStore with the given key.

Variant

Increments the value of a particular key and returns the incremented value.

RBXScriptConnection

Sets callback as a function to be executed any time the value associated with key is changed. It is important to disconnect the connection when the subscription to the key is no longer needed.

Variant

Removes the given key from the DataStore and returns the value associated with that key.

void

Sets the value of the key. This overwrites any existing data stored in the key.

Tuple

Retrieves the value of the key from the website, and updates it with a new value.

Inherited from Instance

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild