Skip to content
State proxiesOverview

LuaStateProxy.Execute

Represents execution associated with a state proxy.

Details#

Compiles and executes source using a proxy in the same VM, forwarding extra arguments. It returns no chunk results. Invalid proxies, compilation failures, execution failures and foreign-VM targets raise errors.

Examples#

Example

Luau
local state = getluastate()
if state then
    local ok, err = pcall(function() state:Execute("print(6 * 7)") end)
    if not ok then warn(err) end
end