How do bones regenerate?

they disappear in you sleep and when you wake up you have new bones