Guide 1 Docs 2 Reference 3
3

data global

Helpers for persistent data views. Player.data remains an ordinary Lua table.

Docs: World

Functions 3

data.copy(value: any) → any

A detached JSON snapshot as ordinary Lua values/tables.

data.insert((list: DataView, value: any) -> ()) → & ((list: DataView, index: number, value: any) -> ())

Insert into a nested data list; omitted index appends.

data.remove(list: DataView, index: number?) → any

Remove and return a detached value; omitted index removes the last element.