Hello, so I am trying to patch something in my game: hookfunctions.
I do this by using integrity checks BUT the check false positives, this script is open sourced and can be found here.
But this is what I’m doing:
function kickplayer() --the name of the function being hooked
local x = game.Players.LocalPlayer:Kick() -- the expected/normal output
return x
end
--Anti FunctionHook
--Integrity check the vulnerable function:
coroutine.resume(coroutine.create(function()
while wait(4) do
if kickplayer() ~= game.Players.LocalPlayer:Kick() then
game.Players.LocalPlayer:Destroy();
end
end
end))
it kicks right when I join after 4 seconds, why is this?