State proxiesOverview
getluastate
Represents discovery of a Luau state.
Details#
With no argument or nil, returns a proxy for the current Luau state. A non-nil argument currently returns nil; this is not a general address-to-state lookup.
Examples#
Example
local state = getluastate()
print(state ~= nil)
print(getluastate("unknown")) -- nil