Skip to content

All server functions

Alphabetical index of PlayerStateServer functions and lifecycle signals.

Common tasks

I want to…UseDocs
Load a playerInitInitialization
Set a valueSetBasic data
Set a nested valueSetPathPaths
Save nowSaveDataUtilities · Events
React to changesOnChangedChange listeners
Hook before leave/shutdownBeforeReleaseEvents
Hook before saveBeforeSaveEvents
Batch many writesBatchSetValuesBatch
Server-wide temp stateSetShared / GetSharedShared session
SymbolSummaryDocs
AddToArrayAppend item to an array pathArrays
BatchSetValuesApply multiple set operations in one batchBatch
BatchUpdateValuesBatch increment/decrement on numeric pathsBatch
BeforeReleaseLeave/shutdown hook before session releaseEvents
BeforeSaveHook before save (SaveData, leave, shutdown)Events
ClearPathCacheClear server path parse cacheCache
CloneDeep or shallow clone of a valueUtilities
DecrementDecrease a numeric key or pathNumeric
FlushBatchFlush pending batched writes for a playerBatch
GetRead a top-level data keyData
GetAllRead full player data tableUtilities
GetFromDictRead a key from a dictionary pathDicts
GetLeaderboardFetch top entries for a leaderboard statLeaderboard
GetOfflineDataLoad saved data for an offline userUtilities
GetPathRead a nested pathPaths
GetPlayerRankGet a player's rank on a leaderboardLeaderboard
GetProfileGet ProfileStore profile objectUtilities
GetReplicaGet Replica instance for a playerUtilities
GetSharedRead shared session top-level keyShared Session
GetSharedAllRead all shared session dataShared Session
GetSharedPathRead shared session nested pathShared Session
GetSharedReplicaGet shared session ReplicaShared Session
IncrementIncrease a numeric key or pathNumeric
InitLoad profile and start session for a playerInitialization
IsPlayerDataReadyNon-blocking profile + Replica readinessUtilities
IsSharedReadyWhether shared session Replica is readyShared Session
MigrationResultSignal when legacy migration finishesEvents
OnChangedSubscribe to profile data changesListeners
OnSharedChangedSubscribe to shared session changesShared Session
ProfileLoadedSignal when player data is ready after joinEvents
ProfileUnloadedSignal when profile session endsEvents
RemoveFromArrayRemove array item by indexArrays
RemoveFromDictRemove dict entry by keyDicts
SaveDataManually save player dataUtilities
SetWrite a top-level data keyData
SetInDictWrite dict entry at pathDicts
SetOfflineDataWrite offline user's saved dataUtilities
SetPathWrite nested path with validationPaths
SetSharedWrite shared session top-level keyShared Session
SetSharedPathWrite shared session nested pathShared Session
SetSharedValuesBatch write shared session keysShared Session
SetValuesSet multiple top-level keys at onceBatch
UpdateArrayItemReplace array item at indexArrays
UpdateLeaderboardUpdate leaderboard score for a playerLeaderboard
WipeOfflinePlayerDataDelete offline user's saved dataUtilities
WipePlayerDataWipe active player's saved dataUtilities

See also the Server overview topic table for grouped documentation.

PlayerState - High-Performance Roblox Data Management