Question is simple, i'm curious about how the "shared" variable works. from what i've seen it uses tables but i have no idea what it does neither how it functions.

local table = {
	[1] = 1,
	[2] = 2,
	[3] = 3,
}

shared.table = table

1 comment

1

https://developer.roblox.com/en-us/api-reference/lua-docs/Roblox-Globals       shared is an array (table)... A table that is shared across all scripts that share the same execution context level. This serves the exact same purpose as _G.