Exposes functions for saving and loading data for the DataStoreService. This class was added in version 0.128.
Methods
GetAsync(key: string, options: DataStoreGetOptions = nil): Tuple
| Name | Type | Default |
|---|---|---|
| key | string | |
| options | DataStoreGetOptions | nil |
- Thread safety: unsafe
IncrementAsync(key: string, delta: int = 1, userIds: Array = {}, options: DataStoreIncrementOptions = nil): Variant
| Name | Type | Default |
|---|---|---|
| key | string | |
| delta | int | 1 |
| userIds | Array | {} |
| options | DataStoreIncrementOptions | nil |
- Thread safety: unsafe
OnUpdate(key: string, callback: Function): RBXScriptConnection
| Name | Type |
|---|---|
| key | string |
| callback | Function |
- Thread safety: unsafe
SetAsync(key: string, value: Variant, userIds: Array = {}, options: DataStoreSetOptions = nil): Variant
| Name | Type | Default |
|---|---|---|
| key | string | |
| value | Variant | |
| userIds | Array | {} |
| options | DataStoreSetOptions | nil |
- Thread safety: unsafe
UpdateAsync(key: string, transformFunction: Function): Tuple
| Name | Type |
|---|---|
| key | string |
| transformFunction | Function |
- Thread safety: unsafe