The game takes place in 1987, around the time FNaF 2 takes place. We can see from the calendar that it takes place from November 16th, 1987, to November 20th, 1987. The 6th and Custom Nights then take place on November 21st and 22nd. You play as Mary Schmidt, who was also a worker at the robot factory (from what we can assume) The current lineup of animatronics are Candy, Cindy, Chester, Blank (although he is from the previous generation), and The Penguin. These animatronics are friendly to children, but act creepily to adults, just like the animatronics in FNAF2.
Mary fall asleep on the job at a robots factery, many months or prior to her job at Candy's. This led to several children being murdered in the robot machine RAT (maybe). He was supposed to be stopped by Mary, but she wasn't awake to do that.
The parts that are covered in blood were used to make the "toy" looking animatronics, hence why the Puppet points to them after the murder, in a seemingly "you did this to them" maner.
The children who lied in the factery have haunted Mary for "killing them", even though RAT (maybe) was the one who did the actual crim. However, as we can tell from the cutscenes, there is no evidence that RAT did it because the cameras were not recording the instances. Pupet seems to represent Mary and her guilt, due to the "MY" and "YOUR" being used synonymously.
Some time After the incident (presumably months) Mary took the job at Candy's, only to tamper with them the next week and get fired, which brokening his hand.
On rare occasion when viewing CAM 03 the posters will change to say "YOU FELL ASLEEP" and "IT IS YOUR FAULT", hinting about Mary falling asleep on the job.