Luduvo Contents
Theme
On this page

Store

opens a key-value store kept with the place, so its rows survive a restart

Methods

1 member Access: server only

open(name: string) -> Store

open the saved key store with that name

Parameters
NameTypeDescription
namestringName of the saved store partition.
returnsStore—

Saving and Loading Key-Value Records

Lifecycle: Server

A store is opened by name, then written and read with ordinary Luau tables.

Luau
local store = game.Store.open("Inventory")store:put("slot_1", { item = "Compass", quantity = 1 })local data = store:get("slot_1")if data then	print("Retrieved item:", data.item)end
Output: Retrieved item: Compass