Is it possible to stop a script from requiring a module script?

tittle says it all.
tbh im just curious if you could since i think hackers uses module script if im not wrong so yea

if you’re concerned about exploiters from using a modulescript just put it in serverstorage

im not sure what the problem is since you werent very specific

example
a script uses
require(module)
how would i stop it from requiring

It’s not possible. require caches the returned value from the module as well so for each call you’ll end up with the same value each time.

Keep all the code only the server needs to execute on server models (ServerStorage, ServerScriptService) to prevent it from being replicated to the client.

2 Likes