Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to encrypt my code and or obfuscate it? SOLVED

At first, I'm really sorry if this question is against guidelines and wrote with no elementary code. Question: I want to learn how to encrypt my code and or obfuscate it.

What ways are to make simple encryption of an example code

function onPlayerRespawned(newPlayer)
	local pl = newPlayer:findFirstChild("Humanoid")
	if pl ~= nil then
		if game.Workspace:findFirstChild(pl.Parent.Name) ~= nil then
			pl.WalkSpeed = 78
		end
	end
end
game.Workspace.ChildAdded:connect(onPlayerRespawned)
--[[this script is just for example]]

5 comments

2

If you want to encrypt it and still have it work you might wanna work on a decoder first

1

Encrypting/obfuscating your code is pointless and stupid.

0

Lmfoa anything U write is already unreadable to anybody but urslef

0

^ at this point, I doubt anyone would want your code, and, even if they did, obfuscation would still pointless.

0

"decoder" yes youre right .. im just ... i dont sleep enough

3 answers

✓ Accepted answer

Synapse X obfuscator may be what you're looking for. There is also a few other but paid one.

I dont know about the obfuscator, but if you want a function that happens on players that spawn you should usePlayerAdded and CharacterAdded:

function onPlayerRespawned(newCharacter) 
newCharacter.Humanoid.WalkSpeed=78
end

function onPlayerEntered(newPlayer)
if newPlayer.Character then onPlayerRespawned(newPlayer.Character) end--Just in case the character already spawned before the CharacterAdded event was binded
newPlayer.CharacterAdded:Connect(onPlayerRespawned)
end

game.Players.PlayerAdded:Connect(onPlayerEntered)

The problem with using workspace.ChildAdded is that anything is added it could happen to that thing. In your case, every NPC, that have a humanoid named "Humanoid" would have the same high walkspeed.

1 comment

0

Ok cool

Yea i will do an encoding that computer will decode [read] with no problem but for human it will be impossible.

This discussion is preserved as it was. New answers, comments, and votes are closed.