-- This function is called when a player joins the game

function onPlayerJoin(player)
	 -- Generate a new secret for the player
	generateSecret()
	 
	 -- Send the player a message with their secret
	 player:SendMessage("Welcome to the game! You have been given a secret that you must not say in the chat. If you do, you will be kicked from the game. Your secret is: " .. secret)
end