1.) how I can run a code, that he doesn't edit important variables of the games and that you can create own variables whitout deleting the old one?
2.) You should only use special functions, not direct functions of love2d.
here is an example how I want it...
Code: Select all
code = "..." --the code string
functions = {...} --special functions like print, computer on/off, ...
ok, errorstring = loadstring(code)
if ok then
ok() --so, now it should have "functions" and his own variables, but how?
else
print(errorstring)
end