Could you give an example of where God gave a law that stated kill them if they do this or that.
I’ll do you one better: the famous passage of God commanding a genocide:
I Samuel 15: 2-3 reads as follows: “Thus saith the LORD of hosts, I remember that which Amalek did to Israel, how he laid wait for him in the way, when he came up from Egypt. Now go and smite Amalek, and utterly destroy all that they have, and spare them not; but slay both man and woman, infant and suckling, ox and sheep, camel and ***.”
From Numbers 31:“And the LORD spake unto Moses, saying, Avenge the children of Israel of the Midianites: afterward shalt thou be gathered unto thy people. …] And they warred against the Midianites, as the LORD commanded Moses; and they slew all the males. …] And the children of Israel took all the women of Midian captives, and their little ones, and took the spoil of all their cattle, and all their flocks, and all their goods.And they burnt all their cities wherein they dwelt, and all their goodly castles, with fire. …] Now therefore kill every male among the little ones, and kill every woman that hath known man by lying with him.But all the women children, that have not known a man by lying with him, keep alive for yourselves.”
Now, the most famous passage here is Num 31:17-18, in which the Israelites are instructed to kill all men and women who have “known man by lying with him” but they are to keep the virgins “alive for [themselves].”
If you want to get technical, it was the Lord who says to commit genocide against the Midianites. They keep the women alive, so then Moses sees that they’ve done so, he gets mad and tells them that the Lord wants them to kill the women who are not virgins and keep the virgins as slaves.
But even though it’s Moses who speaks the somewhat more atrocious part (?), the rest of the chapter makes very clear that it’s not something disapproved of by the Lord. The women who were taken as slaves are counted as part of the booty later on in the chapter, without a single comment about it being bad. In context, it seems that Moses has done a good job reporting and carrying out the will of the Lord.
Forget rules that require people to be stoned: here’s a part of the Bible where “the Lord” character explicitly commands genocide to take place and at least implicitly endorses the taking of virgins as slaves (gee, I wonder what for…).
Once more, none of this proves there’s no god, or anything silly like that. The question of god’s existence is entirely different from questions of his character. As I said, if we are to discuss the hypothetical scenario in which this being exists, then I say that if the Bible gives an accurate picture of this being’s character, then this being is not worthy of my worship.