How fast are autoinjects?

Hey there! I’m working on a custom engine, and while I don’t expect it to take off, I do plan on using it for my personal projects.

Part of the anti-exploit measures built into the engine is to delete any reference to the engine, code and remotes on the client. I’ve tested this and it works, leaving no direct reference to the script for surface-level exploiters to bypass.

Anyways, just how fast are autoinjects? I know it may be possible to bypass the code deleting itself using an auto injector, I just need to know how quickly it happens. For reference, the localscript requiring the engine is in “replicatedfirst” (which I believe to be the place where scripts run the soonest).

I would ideally like to add some sort of way to tell if someone tampered with the code later, but I’m not too sure how to go about this. Maybe later.

Auto inject is fairly fast… Depends on the exploit really but it injects about the time the player has loaded.

I believe replicatedfirst localscripts run before the player loads in, so it’d ultimately depend on how long the engine takes to load… Ah well, not like I was planning on having this be the only anti exploit feature this engine has. Good to know! Thank you!