If the permanent or player is an illegal target when Goblin Bangchuckers’ ability tries to resolve, it won’t resolve and none of its effects will happen. You won’t flip a coin and no damage will be dealt.