Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

How to encrypt my code and or obfuscate it? SOLVED

Asked by
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
game.Workspace.ChildAdded:connect(onPlayerRespawned)
--[[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

2 answers

Log in to vote
1
Answered by
Dfzoz 345 Moderation Voter
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
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 60 — 1y
Ad
Log in to vote
0
Answered by
ErtyPL 60
1 year 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