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

Can anyone tell me how this anti-exploit works?

Asked by 9 years ago

So I have seen it in a few games, where if a player "Speedhacks" it infinitely kills them, bans them, etc.

I want to know how they do this.

Let me get this straight, I do not want any sort of script, but instead a wiki link or an explanation.

If it means turning on filtering enabled, just tell me, but I want to be sure that there is/isn't an easier way.

1 answer

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

Basically, you have to constantly check if the Player in question has a valid WalkSpeed.

Even with FilteringEnabled, some core scripts still edit the Character locally, which is why SpeedHacks work: they only edit the Character.

If you have a Table or some other way of knowing what WalkSpeed a Player should be at in the game, just ban or "punish" them if they go over it (not under, as that may cause it to trigger for iOS or Android players, since they have the ability to walk at reduced speeds.)

For a constant WalkSpeed, this code will suffice:

local walkSpeed = 16

Game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
        wait()
        local h = char:WaitForChild("Humanoid")
        h.Changed:connect(function()
            if h.WalkSpeed > walkSpeed then
                plr:Kick()
            end
        end)
    end)
end)
2
Don't forget, theres a Lvl.7 exploit out there where the Player doesn't really have to change the WalkSpeed within the Humanoid (By using the new OCE Exploit), just letting you know bro. TheeDeathCaster 2368 — 9y
0
At that point, there's *no* way to stop the exploit from going thorugh. This solution will stop most CE speedhackers, though. adark 5487 — 9y
0
I know how an exploit works, the more common one, that simply speeds up the animations. I was just simply curious as to if there was any way Tempestatem 884 — 9y
Ad

Answer this question