Lua states
Lua state proxies for the game and actors.
Returns a proxy for the current executor state.
local state = getluastate()
state:Execute("print('hello from the executor state')")
Returns a proxy for the Roblox main state.
local state = getgamestate()
print(state:IsActorState())
Returns actor state proxies.
for _, state in ipairs(getactorstates()) do
print(state)
end
Proxy objects support Execute(source) and actor lookups.
local state = getgamestate()
state:Execute("print('hello from the game state')")
print(state:GetActors())