How do I make a gamemode?

I wanna make one for a friend, to make him laugh

with lua
in all seriousness you’ve asked such a vague question, how do you even want it to be answered? do you have any experience with coding? any experience with lua? how much experience? have you planned to any extent at all what you are going to make?