Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function saveVarsToFile()
- local h = fs.open("currentVars","w")
- local env = getfenv()
- for i,v in pairs(env) do
- h.write(i)
- h.write(': ')
- h.writeLine(v)
- end
- h.close()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement