I'm making an Anti-Exploit, but I'm wondering is there anyway that this is possible
From Server:
M = require "ModuleScript"
M.output("hi")
Console Output: hi
From Client
M = require "ModuleScript"'
M.output("hi")
Console Output: XX:XX:XX.XXX script:2 ModuleScript can only be called in a Server side script
Anyone help?
SirTomHamishWatson; Team Neoprene Head Programmer

4 comments
Run an if statement before requiring the ModuleScript to check if the parent is in a client based service.
@PyccknnXakep That is not what he wants. He wants an anti exploit to detect if a exploit or the localscript fired the module script.
What you could do, is send a little random password as a parameter for your module script, and if the password is incorrect, the module script could just not run the stuff.
If you're going to prevent the client from running the module, just leave the script in server storage, so the client can't access it.