Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Hiding a script?

I've read a lot about the ServerScriptService on the wiki, and i know it pretty much cuts off access for a client to reach whatever's inside. However, i still have 1 question i couldn't seem to answer:

What's a more effective way to hide a server script from a client: Putting it in the ServerScriptService, or setting it's parent to nil?

I'm very aware these both work, but which one is more powerful?

For example:

script.Parent = nil

-- vs

script.Parent = game:GetService'ServerScriptService'

Now, I always put my scripts in the ServerScriptService just for organization, however what I'm describing is pretty much in the case of someone exploiting.

Anyone know any differences between these 2 options?

1 answer

✓ Accepted answer

If the script is no longer being referenced nor running then it will be deleted and no other server scripts can reference it if it's parent is nil.

I do not believe it is possible to exploit into the ServerScriptService nor ServerStorage other than by hacking into the server so it's pretty much exploit proof anyways. I don't see a need to set it's parent to nil for concern of exploiting.

This discussion is preserved as it was. New answers, comments, and votes are closed.