Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How to encrypt my code and or obfuscate it? SOLVED

Asked by
ErtyPL 129
5 years ago
Edited 5 years 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
game.Workspace.ChildAdded:connect(onPlayerRespawned)
--[[this script is just for example]]
2
If you want to encrypt it and still have it work you might wanna work on a decoder first develop_d 53 — 5y
1
Encrypting/obfuscating your code is pointless and stupid. User#29813 0 — 5y
0
Lmfoa anything U write is already unreadable to anybody but urslef guges 15 — 5y
0
^ at this point, I doubt anyone would want your code, and, even if they did, obfuscation would still pointless. User#29813 0 — 5y
0
"decoder" yes youre right .. im just ... i dont sleep enough ErtyPL 129 — 5y

3 answers

Log in to vote
1
Answered by 2 years ago

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

Ad
Log in to vote
2
Answered by
Dfzoz 489 Moderation Voter
5 years ago
Edited 5 years 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
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.

0
Ok cool ErtyPL 129 — 5y
Log in to vote
0
Answered by
ErtyPL 129
5 years ago

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

Answer this question