Trying to make a obfuscator using getfenv and ASCII

Hello, i am trying to make a obfuscator. there is one problem. The problem is: "while,if,for,or and "and others are not working. bellow is an example script:

local vars
return (function(env, unwrapped)
	local functionENV = function(ting)
		return env()[ting]
	end
	for i, v in pairs(unwrapped.instructions) do
		do
			local iii = v['action']
			functionENV(iii)(v.arg)
		end
	end
end)(getfenv or function()
	return ({
		_ENV
	})[1]
end, {
	(function()
		vars = {
			["toprint"] = "Hello World"
		};
	end)();
	["vars"] = {
		vars
	};
	["instructions"] = {
		{
			["action"] = string.reverse('tnirp');
			["arg"] = (function(arg)
				if vars[arg] then
					return vars[arg]
				else
					return arg
				end
			end)('toprint');
		}
	}
})

(For roblox only!)

  • List item

The code is not formatted well. Please reformat it

1 Like

Beautified:

local vars
return (function(env, unwrapped)
	local functionENV = function(ting)
		return env()[ting]
	end
	for i, v in pairs(unwrapped.instructions) do
		do
			local iii = v['action']
			functionENV(iii)(v.arg)
		end
	end
end)(getfenv or function()
	return ({
		_ENV
	})[1]
end, {
	(function()
		vars = {
			["toprint"] = "Hello World"
		};
	end)();
	["vars"] = {
		vars
	};
	["instructions"] = {
		{
			["action"] = string.reverse('tnirp');
			["arg"] = (function(arg)
				if vars[arg] then
					return vars[arg]
				else
					return arg
				end
			end)('toprint');
		}
	}
})

But ascii decoded

Do something like this

urcode

Not

```mongus```
1 Like

You can’t obfuscate keywords words.