You write a piece of code in a client script which triggers the event? There is no way your anticheat can distinguish between a client script or a cheat so you can just test via a client script.