How do I make this more unreadable?

I’m trying to make these functions unreadable without the use of obfuscation, how can I go further?

function lol(lol1, lol2)
	local DD = lol1
	local TT = lol2
	local MM = DD
	local VV = true
	local RR = VV
	local ThisIsTrue = 15
	local FF1 = ThisIsTrue
	local Synapse = FF1
	local VMR = Synapse
	local FF = TT
	local Yeah = "HumanoidRootPart"
	local SayWhat = Yeah
	local Exactly = SayWhat
	if (MM.Character:FindFirstChild(Exactly).Position - FF.Character:FindFirstChild(SayWhat).Position).Magnitude <= VMR then
		return RR
	end
end
function LMA(What, Yeah)
	local CHK = What
	local PLD = Yeah
	local EJF = CHK
	local TFD = PLD
	local FALSE = true
	local NoItsTrue = false
	local Huh = NoItsTrue
	if EJF.Team.Name ~= TFD.Team.Name then
		return Huh
	end
end
1 Like

Just use single letter variables

1 Like

I’ll try, I wanna make as much as variables so the reader doesn’t know what’s happening. After all, I’m only doing this on client to prevent bugs, everything is handled cleanly on server.

No, use variables like:

local catiebbaldysjhabhwjdjdbsjjajdjfhshwjaifhjsjs = shhsjejdjjdhsjfjxhgqorndbusjsis
local catiebbaldysjhabhwjdjdbsjjajdjfhshwjaifhjsjs = nil
local nasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxo = nasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxonasjfuwhahxisjwjdbehusbdbsjaubbdjxjahqbskdopxjamqmwbksozoxuehndfbjxochevbagagsuxidkbwvagxjdoqpmqnsvdixoxo

Etc. Etc.

3 Likes

top tier code. Ill try coding something in this format.

2 Likes

It’s probably just gonna destroy code and nothing more, but maybe in there there’s actually a Variable that’s useful and the only one used :rofl::rofl::rofl:

What about future you that has to read that code? Manually obfuscating is not super viable in the long term

Just write some notes and your edit, like:
Variable 1 is at line 1003, function 1 is at line 2518 etc.
:rofl::rofl::rofl:

Here is the thing, I don’t have to. This is only for client and I don’t care about client, everything else is handled on server, I just wanna prevent bugs like tool spamming and I don’t wanna hide backpack gui randomly so I’m forced to use distance checks on client.

try using misleading names, also instead of this.character try this["\x63\x68\x61\x72\x61\x63\x74\x65\x72"] as it does the same thing, you can do this by using a utf8 decoder.

1 Like

I could use string reverse too.

function lol(lol1, lol2)
	local DD = lol1
	local TT = lol2
	local MM = DD
	local VV = true or TTTRRR
	local STTTRRR  = string
	local LOLOLL = STTTRRR
	local REVERSEEE = LOLOLL.reverse
	local DONOTREVERSE = REVERSEEE
	local ITOLDOU = DONOTREVERSE
	local MMMDFFF = TTTRRR
	local LOLOLOL = MMMDFFF
	local RR = VV
	local ThisIsTrue = 15
	local FF1 = ThisIsTrue
	local Synapse = FF1
	local VMR = Synapse
	local FF = TT
	local Yeah = "HumanoidRootPart"
	local HRRRTTT = ITOLDOU(Yeah)
	local SayWhat = Yeah
	local Exactly = SayWhat
	local Bro = ITOLDOU(HRRRTTT)
	if (MM.Character:FindFirstChild(Bro).Position - FF.Character:FindFirstChild(SayWhat).Position).Magnitude <= VMR then
		return MMMDFFF
	end
end

What I have right now with string reverse.

You can write readable code, and later use an Obfuscator, which makes the same thing that you are trying to do.
I never used it, but I think this obfuscator can do that.
If you want something just for your project, you can just modify the obfuscator and create your own obfuscator.

7 Likes

Just a tip, obfuscate only the client-side scripts, because, on the server side, the player can’t have access, just the server.

Unless the Client asks something from those Scripts

maybe, if you use something like Knit, you can make the server do some things and just send it to the Client, without the Client receiving the code.

function IDK()
	local GGGMMM = game
	local ISTHIS = GGGMMM
	local v1 = ISTHIS
	local v2 = v1
	local ID = 0
	local NOTID = ID
	local MAN = v2
	local lol = MAN
	local IdentityTheft = NOTID
	if lol.GameId ~= NOTID then
		-- crash
	end
end

Alright I’ll try obfuscation maybe, I also included a little thing.

But the Client would just receive the code anyway and be Epxloitable, there’s no way to prevent that

He just wanna this to be unreadable, the Knit can make the client can’t see a part of the code which runs on the server.

The best practice is to have in mind about, your server needs to check if is an exploit or not, and with the Knit and some things like that, you can make it harder for the exploiter to discover how to do that.

Speaking off, sorry to bump, but would remote function be useful for this? Since it returns anything.

Yes, the remote function is used to do things like that.