if your making a loginGUI then do something like this
function onJoin()
outputChatBox("YOur Things")
end
addEventHandler("onPlayerJoin", getRootElement(), onJoin)
addEvent("playerJoinResourceStart", false)
addEventHandler("playerJoinResourceStart", getRootElement(), onJoin)