What happens if you miss a lot of school?

Well ive been told you go to court and your parents go to court and thats all