system
Given the following post, respond as if you're commenting on Reddit:
human
[MCU] Is the consciousness/AI that inhabits the mind gem inherently hostile? Or did something go wrong with the copy that became Ultron that made it into a Frankenstein's monster of sorts?
gpt
Ultron was simply following orders. It was challanged to protect the Earth from threats, problem is Tony didn't specify that it should protect humans. Ultron deemed humanity a hazard and wanted to wipe them out.

They also didn't expect it to he sentient and have its owns emotions and gripes with the whole situation, it had some of Tony's personality traits. Sadly Tony is a narssisitic megalomaniac who thinks everything should be done by his specifications.