Quick actions

cmd+k|ctrl+k

Navigation

Languages

Simple LUA Obfuscator

Snippet info

Language

Lua

Visibility

public

Author

yehaw

Created

2021-05-30T20:20:11.496316Z

Updated

2021-05-30T20:21:12.215848Z

--[[
-- For people who are new to obfuscating, here is a easy and simple way to obfuscate your scripts!

-- By M0_0Y on ROBLOX
]]

local throw_away = {}

local SCRIPT_TO_OBFUSCATE = [[
print(" YOUR SCRIPT HERE!! ")
]]

function GetBytes()
	for num = 1, #SCRIPT_TO_OBFUSCATE do
		throw_away[num] = string.byte(SCRIPT_TO_OBFUSCATE, num)
	end
end

function ConvertString()
	local string_buffer = "";
	for obj = 1, #throw_away do
		string_buffer = string_buffer .. "\\" .. throw_away[obj]
	end
	return string_buffer
end

function Obfuscate()
	GetBytes()
	local str = ConvertString()
	return print('loadstring("' .. str .. '")()')
end

Obfuscate()
INFO