Would an exploiter be able to see a "Script" Object if parented under a tool?

If I parented a script, not a local script, under a remote event under a tool, would an exploiter be able to see and read/edit the script? Should I just keep my Server Sided Scripts under the ServerScriptService?

This is what I am talking about
image

or would this be more secure?
image

1 Like

Nope! Server script bytecode is never sent to clients as there is no reason to. Although I think that the first image is not very good design.

Thank you for the reply, just wondering though, why would the first image be bad design?

To get the tool in a local script, you do script.Parent. To get the tool in a server script, you’d need to do script.Parent.Parent.Parent.

Overall I don’t see why you can’t put the remote and the server script in the tool itself. You can even organize your remotes and scripts by putting them in folders called Remotes and Scripts.