You can unlock all stars and the custom night game mode by going into Five Nights at Freddy's two and pressing the following buttons on your keyboard at the same time: C, D, +, 2. And you will have everything unlocked.