The server has to contact the volleyball and put it in play BEFORE stepping on the end line or into the court. If you step on or past the line before serving, that's a foot fault.