I am making a multiplayer game and I need to prevent cheating (by altering source code).
Since there is no way (that I know of) to hide/encrypt my script source, would it be possible to save scripts to an online server and have the user open a socket and connect the script online, and import it to use temporarily?
I have no real experience with sockets, I have only made a couple in that past with help from tutorials but I don't know exactly what they are capable of. Is it possible to pass a script (about 1100 lines)?

I don't need a whole script, I can do that on my own... but just an idea of how it could work.