Developer knowledge network · moderated exchange

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

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

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

Hooking __index metamethod to spoof client-side WalkSpeed properties

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

When client-side anti-cheat scripts query Humanoid.WalkSpeed to check for speed hacks:

LUA
local oldIndex
oldIndex = hookmetamethod(game, '__index', function(self, key)
    -- If a game script checks our WalkSpeed, return the default 16
    if not checkcaller() and self:IsA('Humanoid') and key == 'WalkSpeed' then
        return 16
    end
    return oldIndex(self, key)
end)

Now your actual speed can be 100, but local sanity checks always read 16!

luau_reverser
Bytecode Analyst
MEMBER
Өкіл: 115
Қосылу күні: Jul 2019
Хабарламалар: 10
Рахмет: 45
1 ай бұрын · Jul 7, 2026 9:01 AM
#2

checkcaller() check is crucial so your own executor scripts can read the real WalkSpeed value.

segfault_sam
Member
MEMBER
Өкіл: 68
Қосылу күні: Mar 2019
Хабарламалар: 22
Рахмет: 57
1 ай бұрын · Jul 8, 2026 12:03 AM
#3

Works on 90% of popular Roblox games. Bypasses client-side speed checks completely.