I have recently thought some questions about the "require()" function.
My questions: -Is it 100% secure? -Can you actually access the module script from it? -If so, how and how can I prevent this?
require
by id
When you require
by id, it returns the module and makes the module parent to be nil. As a result, the ModuleScript can not be directly accessed, however the primary issue is the function environment:
Every single function which is returned by the module has a function environment. In this function environment is the script
object. If a script can obtain this script
object, it can parent it to Workspace and save the place with the SavePlace API
I dont think it can be hacked from? I mean is that possible. Didnt they make the require() function so it can protect your script from being stolen?