Private data store server for roblox studio.
Download the latest server release or make sure that the GNU Make utility is installed and build it yourself by running build.bat
Before starting, configure config.ini as you need
[Server]
Port = --- ; port in which the server opens. 1922 by default
LogLevel = --- ; level of logs. INFO, WARN, FAIL or NULL. INFO by default
LogFile = --- ; log file directory. console.log by default
To connect to the server you need use roblox studio user agent. Download the latest client release
Require DataStoreX module from ServerScript. And configurate ConnectionConfig attributes:
_ip - ip address of server (192.168.x.x if you use private network etc.)
_port - port of the server from config.ini
storage_name - name of the storage from where you will write/read key values
local datastore = require(path.to.DataStoreX)
local key = 'key'
datastore:SetAsync(key, '习近平')
datastore:GetAsync(key) -- 习近平
datastore:DeleteKey(key)
Functions can throw an error if the connection is unsuccessful, so you need to wrap calls in pcall
Method | Arguments | Return values | Description |
---|---|---|---|
SetAsync | key: string, value: any | () | Sets the value of the key to value and returns void |
GetAsync | key: string | any | Gets the value of key and returns its contents |
Method | Arguments | Return values | Description |
---|---|---|---|
HandShake | () | boolean | Performs a handshake with the server |
DeleteKey | key: string | boolean | Deletes the key |