Bang Bang Kid (1967)
Bang Bang Kid is a 1967 western film produced by Sidney W. Pink and starring Tom Bosley. The plot revolves around a madcap inventor who constructs a mechanical gunfighter to fight against a tyrannical crime lord.
More at Wikipedia.