"Run on Server" Function

I though about that as well. The problem is that I want my function to output something. Do you have any idea how to manage that?