DataService
Last updated 10/07/2025
DataService server handles all backend datastore setup + saving and enables replication to the client
Getting Started
To build the place from scratch, use:
rojo build -o "DataService.rbxlx"
Next, open DataService.rbxlx
in Roblox Studio and start the Rojo server:
rojo serve
Initialization:
Client Example:
local DataService = require(path.to.require)
DataService.client:init()
Server Example:
local DataService = require(path.to.require)
DataService.server:init({
template = {
Cash = {value = 0},
Settings = {
SFXVolume = 0.5,
UIVolume = 0.5,
MusicVolume = 0.5,
},
},
Whitelist = {
"Settings.*",
},
enforceReferentialIntegrity = function(FlaggedUser: Player)
FlaggedUser:Kick(
"[DS ANTI-TAMPER] You were flagged for illegal modification of server data. Your progress has been saved."
)
end,
})