When I first came across fnaf I was like most people.Then I started to become more and more empathetic to the ghost children.So I decided to randomly compile a bunch of other theories into my own idea
1st piece of evidence:William afton was a co-owner and hard worker of the fnaf pizzeria.He was seen even going in springlock suits as a mascot and managing finances.Which means during the kids murder.He could easily don a security guard uniform without suspicion from staff or henry.This means the animatronics attack the first thing that their killer wears.A security uniform.
2nd piece of evidence:William lured the children into a backroom.A dark isolated kill room where likely all they could see was a funsy mascot take off their suit and start attacking them.The dark made it hard to see.All they could make out was a purple uniform and a knife.Setting an idea that all who wear that uniform are who killed them.
Speculation 1:The reason why they kill in the first place.They attack because it's in their nature.Children are prone to lashing out when stressed or hurt because they are scared or don't know better.They see a man in a purple suit walk in and worry:"that's him.He's gonna do it again to us.Let's get him first.".This revenge, an eye for an eye.And in my opinion.Thats why all dead nightguards are stuffed in suits.Its angry kids lashing out and doing to someone what was done to them.
Physchology behind it 1:They are children...in there is not a sound mind.It is still young.It couldn't begin to understand what happened.Why it happened.All there is...is rage.Rage for the pain they suffered and a need to settle a score.They had everything taken from them.Bound by metallic bodies and a fate so twisted that they couldn't understand.So they kill them in the way they died.To make their killer feel the very pain they felt.They don't realize the people they hurt in the process.They're too young,too scared,too impulsive to truly realize their actions are being done to the wrong person.
Physchology 2:In psychology kids are often described at high risk due to how impressionable their brains are during development.Which is why trauma at a young age can change so much.So imagine the pain and fear they suffered and suddenly.You can't do anything.You're trapped.All you remember are bits and flashes from before the pain.So as young kid.You want to get back at them.
Physcology 3:Kids often require a parental figure to guide them and influence right and wrong.Being proed from that figure can cause damage to the physche.It was through the guidance of an intelligent guardian to point them in the right direction and finally get william to feel what happened to them.Charlie...as the puppet at last leads them to their killer for a just dessert.William is springlocked.At last he wholly feels what they did.The fear and pain of an iron coffin that always moves.
Speculation 2:Golden freddy is the most vengeful of them...She's aware like charlie.In my interpretation.She's only scaring the nightguards,crashing the game being like your body being scared into fainting.Which allows windows for the other animatronics to attack the player.She is aware.And whereas Charlie is willing to accept death.Golden freddy isn't.They cannot accept that they had everything taken away.So they will torment William until there is nothing left.As for why she "attacks" the nightguard at all.It could be that she's venting her frustrations.Because we play as Michael,a relative of William...she intentionally chooses not to kill him.Likely associating the two.And trying to prolong his suffering.