Open Asterune
shared

shared

Stores values shared by scripts in the same runtime.

A table in every script's environment.

Behavior

shared is a writable table scoped to the current execution environment. Execution groups have separate tables, as do the server and each client. Values assigned on the server do not replicate to clients.

Use a ModuleScript for explicitly scoped shared state, or a RemoteEvent to communicate between server and client.