I, Robot

Dr. Lanning (James Cromwell) specially designed and ordered Sonny (Alan Tudyk) not to obey the three robotic laws, and to kill him so that through a series of clues, Del Spooner (Will Smith) could eventually be led to discover the takeover plot by the robots, and its mastermind V.I.K.I. the computer (voice of Fiona Hogan).
Thanks, Vigz!