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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
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.