Developer knowledge network · moderated exchange

UnreliableCode қауымдастығы

Әзірлеушілерді зерттеу, кері инженерия және кодтау қауымдастығы

Knowledge indexТірі
4Categories
919Threads
2.8KЖазбалар
Guide

Spoofing Humanoid.WalkSpeed via __index Metamethod to Bypass Anti-Speed Scripts [v2.4 Technical Discussion]

luau_hacker
Luau Expert
MEMBER
Өкіл: 159
Қосылу күні: Aug 2020
Хабарламалар: 17
Рахмет: 26
1 ай бұрын · Jul 6, 2026 7:24 PM
#1

Why client-side anti-cheats flag speed modification:

Games use local scripts that periodically check if Humanoid.WalkSpeed > 16 then Ban() end.

The Metamethod Bypass:

LUA
local mt = getrawmetatable(game)
local oldIndex = mt.__index
setreadonly(mt, false)

mt.__index = newcclosure(function(self, key)
    if not checkcaller() and key == "WalkSpeed" and self:IsA("Humanoid") then
        return 16 -- Always return standard 16 WalkSpeed to game security scripts
    end
    return oldIndex(self, key)
end)
setreadonly(mt, true)

You run at 100 WalkSpeed while game scripts read exactly 16!

hook_doctor
Hooking Specialist
MEMBER
Өкіл: 181
Қосылу күні: Jul 2019
Хабарламалар: 21
Рахмет: 50
1 ай бұрын · Jul 6, 2026 10:15 PM
#2

checkcaller() filtering ensures that your own exploit UI reads real values while game scripts receive spoofed values. Textbook metamethod hook.

ptr_arithmetic
C++ Wizard
MEMBER
Өкіл: 162
Қосылу күні: May 2018
Хабарламалар: 73
Рахмет: 42
1 ай бұрын · Jul 7, 2026 5:37 AM
#3

Completely neutralizes client-side WalkSpeed auditors.