Is there a way to recreate hookfunction in studio to test out my game's anticheat?

I want to test my game’s no cooldown anticheat, but i can’t really figure out a way to test it

Would this work?

1 Like

It didn’t work, i just added a simple localscript that printed something after 2 seconds when you press a key, and it still printed after 2 seconds even after i added the hookfunction on a different script. I don’t know if i did it wrong, so here’s what i tried:

require(game.ReplicatedStorage.xAPI)()

hookfunction(wait, print)

I took a glance at the source code, and it seems hookfunction will only work for the script it was executed in.

This works in the case of exploiters because they can alter any LocalScript’s source code. In order to properly emulate this, you’d need to move the hookfunction inside your desired script.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.