We use cookies on this site to enhance your user experience

OrderedDataStore

OrderedDataStore

A OrderedDataStore is essentially a GlobalDataStore with the exception that stored values must be positive integers and it exposes a method GetSortedPagesAsync. This method allows inspection of the entries in sorted order using a DataStorePages object. OrderedDataStores are useful for creating leaderboards wherein data must kept sorted.

Functions

Name Type Description
Instance

Returns a DataStorePages object. The length of each page is determined by pageSize, and the order is determined by isAscending. minValue and maxValue are optional parameters which will filter the result. See this article for a good explanation of using this. You can not use this too often, as there is a limit on the usage of this method.


If this function throws an error, the error message will describe the problem. A full list of DataStore errors can be seen here.

Notes

The maximum pagesize is 100.


See Also

Inherited from Instance , GlobalDataStore

ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild GetAsync IncrementAsync OnUpdate RemoveAsync SetAsync UpdateAsync