Hey there! I would like for clients to not be able to require certain modules. Is this possible?
What’s the purpose of this? For anti-exploit? We need more information if you wanna get any help.
Yes. I use modules for skill moves. I tested it and my client would access it, and create the moves on the client somehow.
Just don’t require it on client…? Or add a whitelist so only certain players can do anything inside of the modules functions? Still not sure what you mean by skill moves, pretty much everything for skills should be done on server besides effects and maybe hit detection.
Place it somewhere the client can’t see it. i.e. ServerStorage or ServerScriptService.
By skill moves I mean moves that you use to damage players with special effects. For example some of the anime games, where if you press Z, it would use the move.
I would like to not require it on the client, but some exploiters use an executor and require it themselves. I also do require this on the server, but the client could still require it for some reason.
If you put the module in some place such as ServerScriptService/ServerStorage then clients can’t require it. But you can’t really stop exploiters from requiring it if you keep it visible on client.
If you want it to be only required on the Server (this is impossible to do on the client, as the client can always require something on the client) use the following code:
if game:GetService(“RunService”):IsClient() then
player:Kick(“Nice try”)
end