Here's my procedure for the test:
The reason why I want to accomplish this is because I want to make some sort of copy-protection of assets by coding the ModuleScript to know exactly what game sent the call to request assets (not by making the game send its PlaceID or whatnots as arguments to the Module as it is an easy task for exploiters...).
I wanted to start right now but what the wiki says:
local children = script:GetChildren() script = Instance.new("ModuleScript") for _, child in pairs(children) do child.Parent = script end"This will replace the ModuleScript with a blank ModuleScript, which means even if an exploiter gets a reference to the ModuleScript and manages to save it, its source will be blank."
... makes me feel curious, like I want to do a test but I don't have the skills.
Even though I can trust this and the codeblock, I still want to make sure it's completely safe to do so. I needed an answer to this question before I start working on it because if I completed it and I realized it won't work or I'll ask this question after completion, I might have wasted my time.
Please do not answer negatively. Thanks for your feedback.