Is there a way to send over scripting written on server to client?

The thing is I want to write simple client events on my server script and then transfer the coding to the client script for it to run.