If you are still in public school when you turn 18 do your parents still have legal rights over you?

No. 18 means you are legally responsible for yourself. Public schools have no impact.