``` function eval(s) load(s)() end ```
https://www.lua.org/manual/5.4/manual.html#pdf-load
A simple example that I tested:
local chunk = "return 2 + 2" local func = load(chunk) print(func()) -- Output: 4
load is the replacement.
i assume the grandparent meant dostring and not eval?