Still have questions? Join our Discord server and get real time help.
1

# How to encrypt my code and or obfuscate it? SOLVED

ErtyPL 60
1 year ago
Edited 1 year ago

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
--[[this script is just for example]]

0
If you want to encrypt it and still have it work you might wanna work on a decoder first develop_d 51 — 1y
1
Encrypting/obfuscating your code is pointless and stupid. User#29813 0 — 1y
0
Lmfoa anything U write is already unreadable to anybody but urslef guges 15 — 1y
0
^ at this point, I doubt anyone would want your code, and, even if they did, obfuscation would still pointless. User#29813 0 — 1y
0
"decoder" yes youre right .. im just ... i dont sleep enough ErtyPL 60 — 1y

1
Dfzoz 345
1 year ago
Edited 1 year ago

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
end



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.

0
Ok cool ErtyPL 60 — 1y