Combining an entity's lua files

I have an entity I made, but it has 3 lua files (server ,client , and shared). How would I combine these into one script for the toybox? I tried just copying the content from all the files into one, but it gives me the error ‘downloaded file is invalid’ when I try to spawn it in-game. Also, how would I work with it needing to include the wire entity file?

Replace server lua file with “if SERVER then” and client lua file with “if CLIENT then” in shared lua file.

OK, thanks